Mounting LUKS files made easy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ben de Graaff f186b74011 Re-run self with sudo automatically, instead of per command 11 months ago
.gitignore Use loop/backing_file to scan for loop path (Busybox compat) 1 year ago
LICENSE Initial commit 2 years ago
README.md Fix sudo behavior; Do not reserve any blocks 2 years ago
cryptfile Re-run self with sudo automatically, instead of per command 11 months ago
setup.py Add setup.py 2 years ago

README.md

cryptfile

A tool to make managing encrypted filesystem-in-a-file easier.

Usage:

# Create a new LUKS file
cryptfile format example.img 32M

# Mount the LUKS file to `mnt`
cryptfile mount example.img mnt

# If you're mounting for the first time, you should also make the
# filesystem accessible to you:
sudo chown `id -u`:`id -g` mnt

# Unmount
cryptfile umount example.img

TODO

  • More control over LUKS options
  • Test and fix resizing (shrinking seems to be broken!)

Dependencies

  • Python 3
  • Standard mount tools: mount, umount, losetup
  • Cryptsetup (Debian: cryptsetup-bin, Gentoo: sys-fs/cryptsetup)
  • If you’re not currently root, sudo