Skip to content

Commit

Permalink
fix secret generation for DSM 6
Browse files Browse the repository at this point in the history
- use base64 instead of base32 for secret generation
  • Loading branch information
hgy59 committed Dec 3, 2023
1 parent 65f37a5 commit 51f1647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spk/ffsync/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ EOF
echo ${separator}
echo "Setup syncserver config file"

MASTER_SECRET="$(cat /dev/urandom | base32 | head -c64)"
METRICS_HASH_SECRET="$(cat /dev/urandom | base32 | head -c64)"
MASTER_SECRET="$(cat /dev/urandom | base64 | head -c64)"
METRICS_HASH_SECRET="$(cat /dev/urandom | base64 | head -c64)"

# Escape vertical bars in the replacement values
WIZARD_PASSWORD=$(echo "${wizard_password_ffsync}" | sed 's/|/\\|/g')
Expand Down

0 comments on commit 51f1647

Please sign in to comment.