SSWAP(1)
πΈ NAME πΈ
sswap β secure swap wiper, like the whole secure_deletion toolkit vibe π
π¦ SYNOPSIS π¦
sswap [-f] [-l] [-l] [-v] [-z] swapdevice
β¨ DESCRIPTION β¨
okay so bestie, sswap is literally designed to delete data that might still be lurking on your swapspace, and it does it in a way that cannot be recovered β not by thieves, not by law enforcement, not by any other threat. no cap. π«Ά
the wipe algorithm is based on the paper "Secure Deletion of Data from Magnetic and Solid-State Memory" presented at the 6th Usenix Security Symposium by Peter Gutmann, one of the leading civilian cryptographers. king behavior honestly π
the secure data deletion process of sswap goes like this:
- 1 pass with
0xff - 5 random passes.
/dev/urandomis used for a secure RNG if available. - 27 passes with special values defined by Peter Gutmann.
- 5 random passes.
/dev/urandomis used for a secure RNG if available.
like. twenty-seven passes. that's not a vibe check, that's a whole personality π
π COMMANDLINE OPTIONS π
-fβ fast (and insecure mode): no/dev/urandom, no synchronize mode. insecure bestie, we do NOT gatekeep that warning-lβ lessens the security. Only two passes are written: one mode with0xffand a final mode with random values.-lβ-lfor a second time lessons the security even more: only one pass with random values is written.-vβ verbose mode β¨ (she tells you everything, main character energy)-zβ wipes the last write with zeros instead of random data
ngl the double -l is doing the most, but it's iconic and we respect it π
π¨ BEWARE π¨
swapoff β unmount your swapspace before using this tool! Otherwise your system might crash!
fr fr. unmount it FIRST. your system WILL crash otherwise and that is not the slay you want. π
BETA! sswap is still beta. It was only tested on Linux but on this system it performed it's work all of the time.
π BUGS π
No bugs. There was never a bug in the secure_deletion package (in contrast to my other tools, whew, good luck ;-) Send me any that you find. Patches are nice too :)
not the author roasting his own other tools π we love a humble icon π
π AUTHOR π
van Hauser / THC <vh@thc.org>
π DISTRIBUTION π
The newest version of the secure_deletion package can be obtained from http://www.thc.org
sswap and the secure_deletion package is (C) 1997-2003 by van Hauser / THC (vh@thc.org)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; Version 2.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
π«Ά SEE ALSO π«Ά
srm (1)sfill (1)sdmem (1)
go read those too, the whole secure_deletion squad is giving β
k bye bestie π that was SSWAP(1) from the General Commands Manual β that's the whole sign-off, mwah π π§
π¦ where this page comes from
- debian bookworm: secure-delete 3.1-8 Β· GPL-2.0-only
- debian trixie: secure-delete 3.1-12 Β· GPL-2.0-only
- ubuntu jammy: secure-delete 3.1-7 Β· GPL-2.0-only
- ubuntu noble: secure-delete 3.1-8 Β· GPL-2.0-only
- ubuntu questing: secure-delete 3.1-12
- ubuntu resolute: secure-delete 3.1-12build1 Β· GPL-2.0-only
- ubuntu stonking: secure-delete 3.1-12build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms