Python script to encrypt partitions «in place» (well, it requires a swap partition)

fzn 1e0d207754 hooked signal 1 year ago
test a2cc27ed15 cleanup and umount 1 year ago
.gitignore a2cc27ed15 cleanup and umount 1 year ago
CMDS 484e43e1f0 Apparently functional release 1 year ago
README d9021cf369 much doc 1 year ago
TODO 1e0d207754 hooked signal 1 year ago
distclean.sh 31009d091a moar coade 1 year ago
encrypt.py 1e0d207754 hooked signal 1 year ago

README

__
___ ___ __________ _____ / /_
/ -_) _ \/ __/ __/ // / _ \/ __/
\__/_//_/\__/_/ \_, / .__/\__/
/___/_/

script to crypt partitions using luks / cryptsetup
you need some swap space. auditory feedback


+-------------------[DISCLAIMER]--------------------+
| This product is meant for research purposes only. |
| No warranty expressed or implied. |
| May contain traces of various nuts and seeds. |
| This supersedes all previous notices. |
+---------------------------------------------------+

+-----------+
|->WARNINGS:|
+-----------+

- this experimental tool is experimental and meant to be used on magnetic media, not on SSDs
- the swap drive is zero-filled using /dev/urandom
- copying data from / to the targets is done on the filesystem level. Adios empty blocks.
- be wary if you have non ext2/3/4 filesystems. extended attributes / alternate data streams / resource forks will likely be lost
- you want to read yourself about encryption. Getting locked out of data can be unpleasant.
- you might want to change the fstype aswell

- Run the tests first, check for missing tools and for correct completion
_BUT_ don't have loopback mounts on when you do it.
The test should encrypt test.img, using swap.img as temporary storage

+------------+
| UsefulCmds |
+------------+

- {kpartx, losetup} -> add/del/view device mappings
- lsblk -> shows cryptsetup mapped stuff