Category: Encryption

Encryption, LUKS

Create an encrypted file container in Linux

Installations sudo apt-get install cryptsetupsudo apt-get install cryptsetup Create an empty file with the size of your container (e.g. 100MB) fallocate -l 100M mycontainer.imgfallocate -l 100M mycontainer.img or dd if=/dev/urandom of=mycontainer.img bs=1M count=100dd if=/dev/urandom of=mycontainer.img bs=1M count=100 Using a keyfile dd if=/dev/urandom of=mykey.key bs=1024 count=1dd if=/dev/urandom of=mykey.key bs=1024 count=1 Encrypting disk image file sudo cryptsetup …

Debian, Encryption, Security

Remote unlocking LUKS encrypted LVM

Install dropbear on server sudo apt-get install dropbearsudo apt-get install dropbear Generate an SSH key pair on the client system (the one which will be used to unlock the remote machine) http://securityblog.gr/3657/how-to-setup-ssh-keys/ Stop dropbear from starting on normal boot on Server sudo update-rc.d -f dropbear removesudo update-rc.d -f dropbear remove Auto start dropbear sudo sed …

Encryption, Privacy, Security, Truecrypt

How to Encrypt Files/Folders using TrueCrypt

TrueCrypt is software for establishing and maintaining an on-the-fly-encrypted volume (data storage device). On-the-fly encryption means that data is automatically encrypted right before it is saved and decrypted right after it is loaded, without any user intervention. No data stored on an encrypted volume can be read (decrypted) without using the correct password/keyfile(s) or correct …