USB Flash Tools is a toolkit that provides several functions for flash memory cards (eg. SD or CF cards) and USB flash drives. It helps to detect fake cards/drives by verifying its reported capacity. It is able to backup a card/drive to an image file, and restore from it later. You can also use it to securely erase the drive/card's contents from a choice of methods, including pseudorandom data, Royal Canadian Mounted Police DSX, US DoD 5220.22-M (E), US DoD 5220.22-M (ECE), Gutmann etc
http://www.sdean12.org/USBFlashTools.htm