Skip to content

Instantly share code, notes, and snippets.

@jeovazero
Created August 25, 2018 03:30
Show Gist options
  • Save jeovazero/14467d3e03bfbdcd5c25f438e46644ed to your computer and use it in GitHub Desktop.
Save jeovazero/14467d3e03bfbdcd5c25f438e46644ed to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ $# -lt 2 ]
then echo -e "Falta argumentos! \n Usage: $ $0 <input_file> <output_file>\n"
else
echo -e "Executando:\n$ openssl enc -d -aes-256-cbc -in $1 -out $2"
`openssl enc -d -aes-256-cbc -in $1 -out $2`
echo "Ok. Arquivo descriptografado."
fi
# jeotario
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment