{"id":18770821,"url":"https://github.com/rasa/dskwipe","last_synced_at":"2025-04-13T07:32:04.853Z","repository":{"id":27505678,"uuid":"30986132","full_name":"rasa/dskwipe","owner":"rasa","description":"Securely wipe disk media","archived":false,"fork":false,"pushed_at":"2021-02-17T02:15:12.000Z","size":70,"stargazers_count":19,"open_issues_count":4,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-04-01T08:23:57.377Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rasa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-18T20:48:25.000Z","updated_at":"2023-02-01T19:07:05.000Z","dependencies_parsed_at":"2022-08-25T07:41:08.082Z","dependency_job_id":null,"html_url":"https://github.com/rasa/dskwipe","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasa%2Fdskwipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasa%2Fdskwipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasa%2Fdskwipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasa%2Fdskwipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rasa","download_url":"https://codeload.github.com/rasa/dskwipe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223574815,"owners_count":17167566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T19:21:41.263Z","updated_at":"2024-11-07T19:21:42.677Z","avatar_url":"https://github.com/rasa.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dskwipe [![Flattr this][flatter_png]][flatter]\r\n\r\nSecurely wipe disk media.\r\n\r\n## Usage\r\n\r\n````\r\ndskwipe [options] device(s) [byte(s)]\r\n bytes can be one or more numbers between 0 to 255, use 0xNN for hexidecimal,\r\n  0NNN for octal, r for random bytes, default is 0\r\n\r\nOptions:\r\n\r\n -l | --list      List available devices and exit\r\n -p | --passes n  Wipe device n times (default is 1)\r\n -d | --dod       Wipe device using US DoD 5220.22-M method (3 passes)\r\n -E | --doe       Wipe device using US DoE method (3 passes)\r\n -D | --dod7      Wipe device using US DoD 5200.28-STD method (7 passes)\r\n -S | --schneier  Wipe device using Bruce Schneier's method (7 passes)\r\n -b | --bci       Wipe device using German BCI/VSITR method (7 passes)\r\n -g | --gutmann   Wipe device using Peter Gutmann's method (35 passes)\r\n -1 | --pseudo    Use pseudo RNG (fast, not secure, this is the default)\r\n -2 | --windows   Use Windows RNG (slower, more secure)\r\n -k | --kilobyte  Use 1024 for kilobyte (default is 1000)\r\n -y | --yes       Start processing without waiting for confirmation\r\n -x | --exit mode Exit Windows. mode can be: poweroff, shutdown, hibernate,\r\n                  logoff, reboot, or standby.\r\n -f | --force     Force poweroff/shutdown/logoff/reboot (WARNING: DATA LOSS!)\r\n -q | --quiet     Display less information (-qq = quieter, etc.)\r\n -z | --refresh n Refresh display every n seconds (default is 1)\r\n -n | --sectors n Write n sectors at once (1-65535, default is 64)\r\n -s | --start   n Start at relative sector n (default is 0)\r\n -e | --end     n End at relative sector n (default is last sector)\r\n -r | --read      Only read the data on the device (DOES NOT WIPE!)\r\n -i | --ignore    Ignore certain read/write errors\r\n -v | --version   Show version and copyright information and quit\r\n -? | --help      Show this help message and quit (-?? = more help, etc.)\r\n````\r\n\r\n## Examples\r\n\r\n````batch\r\n dskwipe -l                         \u0026 lists devices, and exit\r\n dskwipe \\\\.\\PhysicalDrive1         \u0026 erase disk once using the byte 0\r\n dskwipe \\Device\\Ramdisk 1          \u0026 erase disk once using the byte 1\r\n dskwipe \\Device\\Ramdisk 0 255      \u0026 erase disk twice using bytes 0 then 255\r\n dskwipe --dod \\Device\\Ramdisk      \u0026 erase disk using DoD 5220.22-M method\r\n dskwipe \\Device\\Ramdisk 0 0xff r   \u0026 same as --dod (bytes 0, 255, weak random)\r\n dskwipe -p 2 \\Device\\Ramdisk 0 1   \u0026 erase disk 4 times using bytes 0/1/0/1\r\n dskwipe -p 2 --dod \\Device\\Ramdisk \u0026 erase disk twice using DoD method\r\n dskwipe -1 \\Device\\Ramdisk r r     \u0026 erase disk twice using weak RNG\r\n dskwipe -2 \\Device\\Ramdisk r r r r \u0026 erase disk four times using strong RNG\r\n````\r\nHere are some device names that have worked for me:\r\n\r\n````\r\n\\\\.\\PhysicalDrive0\r\n\\\\.\\c:\r\n\\device\\harddisk0\\partition0\r\n\\device\\harddisk0\\partition1\r\n\\device\\floppy0\r\n\\device\\ramdisk\r\n````\r\n\r\n## Verify a Release\r\n\r\nTo verify a release, download the .zip, .sha256, and .asc files for the release \r\n(replacing dskwipe-1.1-win32.zip with the release you are verifying):\r\n\r\n````\r\n$ wget https://github.com/rasa/dskwipe/releases/download/v1.1/dskwipe-1.1-win32.zip{,.sha256,.asc}\r\n````\r\n\r\nNext, check that sha256sum reports \"OK\":\r\n````\r\n$ sha256sum -c dskwipe-1.1-win32.zip.sha256\r\ndskwipe-1.1-win32.zip: OK\r\n````\r\n\r\nLastly, check that GPG reports \"Good signature\":\r\n\r\n````\r\n$ gpg --keyserver hkps.pool.sks-keyservers.net --recv-key 0x105a5225b6ab4b22\r\n$ gpg --verify dskwipe-1.1-win32.zip.asc dskwipe-1.1-win32.zip\r\ngpg:                using RSA key 0xFF914F74B4BB6EF3\r\ngpg: Good signature from \"Ross Smith II \u003cross@smithii.com\u003e\" [ultimate]\r\n...\r\n````\r\n\r\n## Contributing\r\n\r\nTo contribute to this project, please see [CONTRIBUTING.md](CONTRIBUTING.md).\r\n\r\n## Bugs\r\n\r\nTo view existing bugs, or report a new bug, please see [issues](../../issues).\r\n\r\n## Changelog\r\n\r\nTo view the version history for this project, please see [CHANGELOG.md](CHANGELOG.md).\r\n\r\n## License\r\n\r\nThis project is [MIT licensed](LICENSE).\r\n\r\n## Contact\r\n\r\nThis project was created and is maintained by [Ross Smith II][] [![endorse][endorse_png]][endorse]\r\n\r\nFeedback, suggestions, and enhancements are welcome.\r\n\r\n[Ross Smith II]: mailto:ross@smithii.com \"ross@smithii.com\"\r\n[flatter]: https://flattr.com/submit/auto?user_id=rasa\u0026url=https%3A%2F%2Fgithub.com%2Frasa%2Fdskwipe\r\n[flatter_png]: http://button.flattr.com/flattr-badge-large.png \"Flattr this\"\r\n[endorse]: https://coderwall.com/rasa\r\n[endorse_png]: https://api.coderwall.com/rasa/endorsecount.png \"endorse\"\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasa%2Fdskwipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frasa%2Fdskwipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasa%2Fdskwipe/lists"}