From f695a159b4e82a8c8e2915309293bc734294b438 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Sat, 21 Sep 2024 13:55:22 +0200 Subject: [PATCH] Scripts: Add AES256 Encrypt and Compress. --- scripts/AES256 Decrypt | 9 +++++++++ scripts/AES256 Encrypt | 7 +++++++ scripts/Compress TarXz | 6 ++++++ src/.gitkeep | 0 4 files changed, 22 insertions(+) create mode 100755 scripts/AES256 Decrypt create mode 100755 scripts/AES256 Encrypt create mode 100755 scripts/Compress TarXz create mode 100644 src/.gitkeep diff --git a/scripts/AES256 Decrypt b/scripts/AES256 Decrypt new file mode 100755 index 0000000..c69d9a9 --- /dev/null +++ b/scripts/AES256 Decrypt @@ -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 diff --git a/scripts/AES256 Encrypt b/scripts/AES256 Encrypt new file mode 100755 index 0000000..9f5081d --- /dev/null +++ b/scripts/AES256 Encrypt @@ -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 diff --git a/scripts/Compress TarXz b/scripts/Compress TarXz new file mode 100755 index 0000000..70a17e9 --- /dev/null +++ b/scripts/Compress TarXz @@ -0,0 +1,6 @@ +#! /bin/sh + +tar -cvJf - $1 | \ + tee $1.tar.xz | \ + zenity --title="Compress $1 (tar.xz)" \ + --progress --auto-close diff --git a/src/.gitkeep b/src/.gitkeep new file mode 100644 index 0000000..e69de29