201309090

This commit is contained in:
stubbfel
2013-09-09 21:15:10 +02:00
parent 8a9d095197
commit d5991aa301
12 changed files with 205 additions and 2 deletions

9
decryptFileByRSA.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
FILE=$1
KEY=$2
openssl base64 -d -in key.b64 -out key.enc
openssl base64 -d -in $FILE.b64 -out $FILE.enc
openssl rsautl -decrypt -inkey $KEY -in key.enc -out key
openssl enc -d -aes-256-cbc -salt -in $FILE.enc -out $FILE.dec -kfile key
mv $FILE.dec $FILE
rm key key.enc $FILE.enc