![]() |
|
Encrypt and Decrypt files with gpg 4096 bits - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Blackhat • Red Team • Offensive Security (https://hackforums.net/forumdisplay.php?fid=447) +---- Forum: Cryptography, Encryption, and Decryption (https://hackforums.net/forumdisplay.php?fid=126) +---- Thread: Encrypt and Decrypt files with gpg 4096 bits (/showthread.php?tid=5559731) |
Encrypt and Decrypt files with gpg 4096 bits - ElmagoLoko - Feb 24, 2017 Generate a RSA Key: Code gpg --gen-keyTo encrypt a file Code gpg -c file.to.encryptCode gpg file.to.encrypt.gpgBut gpg will not do entire directories. For entire directories you have several options, ecryptfs is popular. # Install if ecryptfs-utils if needed] Code sudo apt-get install ecryptfs-utilsMake an encrypted directory Code ecryptfs-setup-privateIf you want a different behavior or a different directory ... Code mkdir ~/secretCode chmod 700 ~/secretCode sudo mount -t ecryptfs ~your_user/secret ~your_user/secretTo encrypt Code sudo umount ~your_user/secretCode sudo mount ./secret ./secret -o key=passphrase,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_passthrough=no,ecryptfs_enable_filename_crypto=yes* - RastaManKing - Feb 24, 2017 Good information on here.. thank you man.. |