From d58bc3bb0459bcff1011dcec457fc1000843fbdf Mon Sep 17 00:00:00 2001 From: mainboarder Date: Thu, 30 Dec 2021 19:27:38 +0100 Subject: [PATCH] Removed openssl dependency --- backup-server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup-server.sh b/backup-server.sh index 8fa1672..ba6714a 100644 --- a/backup-server.sh +++ b/backup-server.sh @@ -51,7 +51,7 @@ LOGDIR='/var/log/duplicity' # must exist # Setting the pass phrase to encrypt the backup files. Will use symmetrical keys in this case. # Set one Password per Backup -PASSPHRASE=$(/usr/bin/openssl rand -base64 21) +PASSPHRASE=$(dd if=/dev/urandom 2>/dev/null | tr -cd '[:alnum:]' | fold -w21 | head -1) export PASSPHRASE # encryption algorithm for gpg, disable for default (CAST5)