diff --git a/crypter.sh b/crypter.sh index a324ffe..795cd18 100755 --- a/crypter.sh +++ b/crypter.sh @@ -16,8 +16,12 @@ else fi # Check if keys are set -if [ ! -f keys ]; then echo "KEYS=\"-des-ede3-cbc -pbkdf2\"" > keys; fi -source keys +if [ ! -f ~/.crypter/keys ] +then + mkdir -p ~/.crypter + echo "KEYS=\"-des-ede3-cbc -pbkdf2\"" > keys +fi +source ~/.crypter/keys # Check method case "$1" in