Scripts: Add AES256 Encrypt and Compress.
parent
e801a1f6eb
commit
f695a159b4
|
|
@ -0,0 +1,9 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
filename=${1%.*}
|
||||||
|
|
||||||
|
password=$(zenity --password --title "Decrypt $filename")
|
||||||
|
|
||||||
|
openssl enc -aes-256-cbc -nosalt -d -a \
|
||||||
|
-in $1 -out $filename \
|
||||||
|
-pass pass:$password
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
password=$(zenity --password --title "Encrypt $filename")
|
||||||
|
|
||||||
|
openssl enc -aes-256-cbc -nosalt -a \
|
||||||
|
-in $1 -out $1.enc \
|
||||||
|
-pass pass:$password
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
tar -cvJf - $1 | \
|
||||||
|
tee $1.tar.xz | \
|
||||||
|
zenity --title="Compress $1 (tar.xz)" \
|
||||||
|
--progress --auto-close
|
||||||
Loading…
Reference in New Issue