Encrypt passwords in DB (#1187)

* Encode/Encrypt passwords in DB

* Only decrypts passwords if it is necessary

* Add tests for encryption functions
This commit is contained in:
Deluan Quintão authored and Joe Stump committed 2026-01-02 20:04:16 +00:00
1 parent f59efb6b0a
commit 5590fa3550
12 files changed
+302 -7

No files matched your search

+5
View File
@@ -20,6 +20,11 @@ const (
DefaultSessionTimeout = 24 * time.Hour
CookieExpiry = 365 * 24 * 3600 // One year
// DefaultEncryptionKey This is the encryption key used if none is specified in the `PasswordEncryptionKey` option
// Never ever change this! Or it will break all Navidrome installations that don't set the config option
DefaultEncryptionKey = "just for obfuscation"
PasswordsEncryptedKey = "PasswordsEncryptedKey"
DevInitialUserName = "admin"
DevInitialName = "Dev Admin"