Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function encryptf () {
- if [ "$#" -ne 1 ]; then
- echo "no parameter passed"
- else
- openssl aes-256-cbc -a -salt -in $1 -out $1.enc
- fi
- }
- function decryptf () {
- if [ "$#" -ne 2 ]; then
- echo "no parameters passed"
- else
- openssl aes-256-cbc -d -a -in $1 -out $2
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement