vim, gitconfig, update.sh
[dotfiles_afify.git] / .scripts / vera.sh
blobcace2cf0a71141009b489633c783026cfd3c0f51
1 #!/bin/sh
3 create(){
4 filename="$1"
5 password="$2"
6 size="10m"
7 encryption="AES"
8 filetype="exfat"
9 hash_type="sha-512"
10 volume_type="normal"
12 veracrypt -t --create "$filename" --filesystem "$filetype" \
13 --encryption "$encryption" --password "$password" --size "$size" \
14 --volume-type "$volume_type" --hash "$hash_type" --pim=0 -k "" \
15 --random-source=/dev/urandom
18 case "$1" in
19 create) create "$2" "$3";;
20 mount) veracrypt --mount filename /media/vera ;;
21 umount) veracrypt -d ;;
22 *) echo "create, mount, umount";;
23 esac