Fixed the rubish bit of work I just added.
This commit is contained in:
parent
c6e3898211
commit
dfb7d2175a
@ -145,15 +145,8 @@ else
|
||||
fi
|
||||
}
|
||||
|
||||
function pfdecrypt() {
|
||||
echo "Please provide encrypted config (e.g. ~/config.xml) : "
|
||||
read configin
|
||||
echo "Please Provide output location (e.g. ~/config-decrypted.xml) : "
|
||||
read configout
|
||||
echo "Decryption Password: "
|
||||
read -s password
|
||||
cat '$configin' | sed -e '1d' -e '$d' | base64 -d | openssl enc -d -aes-256-cbc -md md5 -out '$configout' -k '$password'
|
||||
password='jriuoutyh3457ntyfvt5n7tfy43758rvm5ty5478fr7u47ftyc547t54nyt7v8546t8n3457nvty45t745yjkgf4t7fyvg45t78fg4y5fg4758y6ftg4758yvg45n7t45yt845yhv56yhv4565yv6y456y&%^$%£yv56yfv$%fy456fY56yf456'
|
||||
pfdecrypt() {
|
||||
cat "$1" | sed -e '1d' -e '$d' | base64 -d | openssl enc -d -aes-256-cbc -md md5 -out "$2" -k "$3"
|
||||
}
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user