What's new

Usb drive encryption

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

That is a very good wiki on how to do encryption with dm-crypt and LUKS.

Next, it's possible to mount a Veracrypt or Truecrypt encrypted device on the router? Yes. This requires a backport from Linux 2.6.38.8 to Asuswrt-Merlin for the algif_skcipher kernel module. And the cryptsetup program must be compiled without "--disable-kernel_crypto".

How to apply the patch
Code:
cd ~/asuswrt-merlin
patch -p2 -i ~/380.66-alpha1_ARM_dm-crypt+skcipher.patch

Example: mount a Veracrypt encrypted file container on the router
Code:
# first, use Veracrypt to create an encrypted file container named "vctest.img"
# then copy it to the router and run this script
losetup /dev/loop6 ./vctest.img
modprobe algif_skcipher  # you'll need my kernel patch (see below)
cryptsetup --veracrypt tcryptOpen /dev/loop6 vctest
# now wait 5 minutes; yes, it takes a very long time
mkdir /mnt/vctest
mount /dev/mapper/vctest /mnt/vctest
# now copy some files that you want encrypted, to the /mnt/vctest folder
umount /mnt/vctest
cryptsetup tcryptClose vctest
losetup -d /dev/loop6


An encrypted file container created on Microsoft Windows using Veracrypt may now be used on the router. :)

 

Attachments

  • 380.66-alpha1_ARM_dm-crypt+skcipher.patch.txt
    130.8 KB · Views: 280
Last edited:

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top