π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Don't rely on the -w flag for base64
Manav Rathi70924b7416cd
diff --git a/server/quickstart.sh b/server/quickstart.shindex 82043e55b6..17f42b21d2 100755--- a/server/quickstart.sh+++ b/server/quickstart.sh@@ -39,18 +39,18 @@ fiprintf "\n - \033[1mH E L L O\033[0m - \033[1;32mE N T E\033[0m -\n\n"-gen_user_suffix () { head -c 6 /dev/urandom | base64 -w 0; }+gen_user_suffix () { head -c 6 /dev/urandom | base64 | tr -d '\n'; }-gen_password () { head -c 21 /dev/urandom | base64 -w 0; }+gen_password () { head -c 21 /dev/urandom | base64 | tr -d '\n'; }# crypto_secretbox_KEYBYTES = 32-gen_key () { head -c 32 /dev/urandom | base64 -w 0; }+gen_key () { head -c 32 /dev/urandom | base64 | tr -d '\n'; }# crypto_generichash_BYTES_MAX = 64-gen_hash () { head -c 64 /dev/urandom | base64 -w 0; }+gen_hash () { head -c 64 /dev/urandom | base64 | tr -d '\n'; }# Like gen_key but sodium_base64_VARIANT_URLSAFE which converts + to -, / to _-gen_jwt_secret () { head -c 32 /dev/urandom | base64 -w 0 | tr '+/' '-_'; }+gen_jwt_secret () { head -c 32 /dev/urandom | base64 | tr -d '\n' | tr '+/' '-_'; }pg_pass=`gen_password`minio_user=minio-user-$(gen_user_suffix)