Created
January 24, 2019 08:08
-
-
Save fb64/a937eea54e30ec72331b1bf85bbbe96d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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