dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 260c82b46c4a1d9b637fd0dae509d132bb837b7b
parent 94d73fbdada9d6a5f67f05f97e1ec4d0dc3bcbb9
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 11 Jan 2023 10:54:41 -0800

rename fn

Diffstat:
Mpkg/database/tableChatRooms.go | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pkg/database/tableChatRooms.go b/pkg/database/tableChatRooms.go @@ -44,14 +44,14 @@ func CreateRoom(name string, passwordHash string, ownerID UserID, isListed bool) } func GetRoomPasswordHash(password string) string { - return utils.Sha512(getSaltedPasswordBytes(password)) + return utils.Sha512(getRoomSaltedPasswordBytes(password)) } func GetRoomDecryptionKey(password string) string { - return utils.Sha256(getSaltedPasswordBytes(password))[:32] + return utils.Sha256(getRoomSaltedPasswordBytes(password))[:32] } -func getSaltedPasswordBytes(password string) []byte { +func getRoomSaltedPasswordBytes(password string) []byte { return []byte(config.RoomPasswordSalt + password) }