Skip to content

Instantly share code, notes, and snippets.

@fb64
Created January 24, 2019 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fb64/a937eea54e30ec72331b1bf85bbbe96d to your computer and use it in GitHub Desktop.
Save fb64/a937eea54e30ec72331b1bf85bbbe96d to your computer and use it in GitHub Desktop.
#!/bin/sh
for i in `openssl list-cipher-commands`
do
RES="decrypt/${i}.gif"
openssl $i -d -in $1 -out $RES -pass pass:$2
if [ $? -eq 0 ]; then
echo "OK"
else
rm -rf $RES
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment