They are recommended to be used to restore the write performance of a SSD disk. Note: HDDErase and hdparm uses ATA's firmware functions to secure erase the disk. You can also try Darik's Boot And Nuke(DBAN)
It may take longer time than method 1 & 2 since is an software based method not using ATA firmware functions.
If you want to run hdparm in windows, you can either install cygwin(hdparm is included in the cygwin distribution), or try hdparm binary for windows.In the terminal window, run the above commands. or, you can burn a gparted live cd or any linux live cd, e.g.Where xxxxxxxx can be anything you wish to use for a password, /dev/sdx is the disk device to be erased. Sudo hdparm -user-master u -security-erase xxxxxxxx /dev/sdx you can just run the following commands: sudo hdparm -user-master u -security-set-pass xxxxxxxx /dev/sdx If you are running Linux and the disk to be erased is not the system disk.this method can be used to restore write performance of a SSD disk.You may need to look at method 2: use hdparm HDDErase does not support all the motherboards/disks.
I'm running Cygwin on Windows 7 and have done for several years now.