I have on my Ubuntu an encrypted partition (encrypted with cryptsetup).
Currently, I mount the partition with
sudo cryptsetup luksOpen /dev/sda1 backup && wait && sudo mount /dev/mapper/backup /backup
and it prompts for the paraphrase.
So is there a way to put this line in a script and mount automatically the partition (in order to do daily backup) like this:
sudo cryptsetup luksOpen /dev/sda1 backup < paraphrase
or better:
sudo cryptsetup luksOpen /dev/sda1 backup < hashed_paraphrase