= ecryptfs
== related
* apt install ecryptfs-utils
* [[https://ostechnix.com/how-to-encrypt-directories-with-ecryptfs-in-linux/]] Práctico!!
* [[https://www.howtoforge.com/how-to-encrypt-directories-partitions-with-ecryptfs-on-debian-squeeze]]
* [[https://wiki.debian.org/TransparentEncryptionForHomeFolder]]
* [[https://linux.die.net/man/7/ecryptfs]]
* [[https://wiki.archlinux.org/index.php/ECryptfs]]
== cli
* setup:sudo mount -t ecryptfs ~/SECRET/ ~/SECRET/
* mount:sudo mount -t ecryptfs -o ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_enable_filename_crypto=n,ecryptfs_passthrough=n ~/SECRET ~/SECRET
key=passphrase:passphrase_passwd_file=/mnt/usb/password.txt
ecryptfs_sig=8567ee2ae5880f2d # cat /root/.ecryptfs/sig-cache.txt
ecryptfs_cipher=aes
ecryptfs_key_bytes=16
ecryptfs_passthrough=n
ecryptfs_enable_filename_crypto=n
== credentials
* option: ''key=passphrase:passphrase_passwd_file=/mnt/usb/file.txt''
* passphrase_passwd=[passphrase]