minor bugfixes and cleanup

This commit is contained in:
ston1th 2018-09-19 00:10:16 +02:00
commit 97d914bce4
26 changed files with 198 additions and 221 deletions

View file

@ -1,7 +1,9 @@
// Copyright (C) 2018 Marius Schellenberger
package db
import (
"golang.org/x/crypto/sha3"
"crypto/sha256"
"time"
)
@ -31,7 +33,7 @@ func validatePassword(pw string) (b []byte) {
if len(pw) <= 56 {
return
}
hash := sha3.New384()
hash := sha256.New()
hash.Write(b)
b = hash.Sum(nil)
return