mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-05 13:48:21 -05:00
11 lines
313 B
Bash
Executable File
11 lines
313 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ "$1" = "-e" ]; then
|
|
openssl enc -aes-256-cbc -salt -a -in "$2" -out "$3" || { echo "File not found"; return 1; }
|
|
elif [ "$1" = "-d" ]; then
|
|
openssl enc -aes-256-cbc -d -a -in "$2" -out "$3" || { echo "File not found"; return 1; }
|
|
else
|
|
echo "Wrong 1st argument. Need -d or -e."
|
|
return 1
|
|
fi
|