Scripts: Add AES256 Encrypt and Compress.

main
Pierre-Antoine 2024-09-21 13:55:22 +02:00
parent e801a1f6eb
commit f695a159b4
4 changed files with 22 additions and 0 deletions

9
scripts/AES256 Decrypt Executable file
View File

@ -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

7
scripts/AES256 Encrypt Executable file
View File

@ -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

6
scripts/Compress TarXz Executable file
View File

@ -0,0 +1,6 @@
#! /bin/sh
tar -cvJf - $1 | \
tee $1.tar.xz | \
zenity --title="Compress $1 (tar.xz)" \
--progress --auto-close

0
src/.gitkeep Normal file
View File