From 04e405e6e84e6a6b524aa0473ff50e7c8dadf4cf Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 17 Mar 2023 20:57:05 +0100 Subject: [PATCH] Use longer password in example script Signed-off-by: Knut Ahlers --- cli_create.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli_create.sh b/cli_create.sh index ce25bbf..69f9bce 100644 --- a/cli_create.sh +++ b/cli_create.sh @@ -18,8 +18,8 @@ SECRET=${1:-} exit 1 } -# Generate a random 8 character password -pass=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 8 || true) +# Generate a random 20 character password +pass=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 20 || true) # Encrypt the secret ciphertext=$(echo "${SECRET}" | openssl aes-256-cbc -base64 -pass "pass:${pass}" -iter 300000 -md sha512 2>/dev/null)