mirror of
https://github.com/sbrl/bin.git
synced 2018-01-10 21:33:46 +00:00
15 lines
287 B
Text
15 lines
287 B
Text
|
#!/usr/bin/env bash
|
||
|
|
||
|
##########################
|
||
|
# File decryption script #
|
||
|
##########################
|
||
|
# Written by Starbeamrainbowlabs
|
||
|
# Uses openssl to symmetrically decrypt a file.
|
||
|
|
||
|
read -s -p "Password: " password
|
||
|
echo
|
||
|
|
||
|
openssl enc -in $1 -out ${1%.*} -d -aes256 -k "$password"
|
||
|
|
||
|
echo
|