mfa encryption keys: 32 bits or 32 bytes long ?
Author: softlionCreated Jun 3, 2026Updated Jun 12, 2026
In https://github.com/heroiclabs/nakama/blob/master/server/config.go :
line 424: "bits" in the log
logger.Fatal("MFA encryption key has to be 32 bits long")line 1620: "bytes"
StorageEncryptionKey string `yaml:"storage_encryption_key" json:"storage_encryption_key" usage:"The encryption key to be used when persisting MFA related data. Has to be 32 bytes long."`line 1635: "bits" in the comment
StorageEncryptionKey: "the-key-has-to-be-32-bytes-long!", // Has to be 32 bit long.In the end it should be 32 bytes...
Source: heroiclabs/nakama