a guest Jan 20th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #! /bin/bash
- if [ $# -eq 0 ] || [ $# -gt 1 ]; then
- echo "Exactly ONE argument needed"
- if [ "$extension" == "enc" ]; then
- openssl enc -d -aes-256-cbc -in $1 -out $filename
- echo "Extension should be .enc, decrypting anyway"
- openssl enc -d -aes-256-cbc -in $1 -out $1.dec
RAW Paste Data