Luks – Crypto Container

#Initialization
sudo dd if=/dev/urandom of=CryptoContainer bs=1M count=300000
sudo cryptsetup -c aes-xts-plain64 -s 512 -h sha512 -y luksFormat CryptoContainer
sudo cryptsetup luksOpen CryptoContainer Crypto_Forensics

sudo mkfs.ext4 /dev/mapper/Crypto_Forensics
sudo mount -t ext4 /dev/mapper/Crypto_Forensics /media/Crypto_Forensics

sudo chown -R username /media/Crypto_Forensics

#Map Crypto Container
sudo cryptsetup luksOpen CryptoContainer Crypto_Forensics
sudo mount -t ext4 /dev/mapper/Crypto_Forensics /media/Crypto_Forensics

#UnMap Crypto Container
sudo unmount /media/Crypto_Forensics
sudo cryptsetup luksClose container

Leave a Reply