From 74df3d4cc7fd06705d1dee608378a90622c51bb3 Mon Sep 17 00:00:00 2001 From: Hossy Date: Wed, 20 Jul 2022 16:25:54 -0500 Subject: [PATCH] encode username, password, did, and totp for security --- deploy/synology_dsm.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/synology_dsm.sh b/deploy/synology_dsm.sh index f30f82c0..ee84ec4e 100644 --- a/deploy/synology_dsm.sh +++ b/deploy/synology_dsm.sh @@ -126,10 +126,10 @@ synology_dsm_deploy() { _debug2 H1 "${_H1}" # Now that we know the username and password are good, save them - _savedeployconf SYNO_Username "$SYNO_Username" - _savedeployconf SYNO_Password "$SYNO_Password" - _savedeployconf SYNO_DID "$SYNO_DID" - _savedeployconf SYNO_TOTP_SECRET "$SYNO_TOTP_SECRET" + _savedeployconf SYNO_Username "$SYNO_Username" "base64" + _savedeployconf SYNO_Password "$SYNO_Password" "base64" + _savedeployconf SYNO_DID "$SYNO_DID" "base64" + _savedeployconf SYNO_TOTP_SECRET "$SYNO_TOTP_SECRET" "base64" _info "Getting certificates in Synology DSM" response=$(_post "api=SYNO.Core.Certificate.CRT&method=list&version=1&_sid=$sid" "$_base_url/webapi/entry.cgi")