|
You are here |
trstringer.com | ||
| | | | |
www.wgdd.de
|
|
| | | | | A private blog about Debian GNU/Linux, my work and life as a Debian user and as Debian developer. | |
| | | | |
ketanvijayvargiya.com
|
|
| | | | | I recently setup a Samba share on a Raspberry Pi on my home network. As part of that, I used a 5 TB Western Digital My Passport Ultra as the storage layer. I wanted to encrypt it since it's going to store a lot of personal content. That way, I won't have to worry about leaking any of that data if I lost the disk. The following post lists down the Linux commands I used to turn on that encryption. And while I tried this on a Raspberry Pi, the commands are generic and should work on any Linux system. | |
| | | | |
willhaley.com
|
|
| | | | | Encrypt and Decrypt a Single File on Linux with AES256 and GPG Encrypt gpg --cipher-algo AES256 --symmetric --output encrypted.file plain.file Decrypt gpg --output plain.file --decrypt encrypted.file Change the key file for a LUKS device cryptsetup luksChangeKey /dev/sdX --key-file /keys/old.keyfile /keys/new.keyfile Create a LUKS Encrypted Image Container File Create an empty 1GB img file dd if=/dev/zero of=encrypted.img bs=1 count=0 seek=1G Choose a keyfile that will be used to encrypt and unlock the image. Any regular file works as a key. A random key can be generated like so. | |
| | | | |
blog.jchw.io
|
|
| | | A blog about software. | ||