minor bugfixes and cleanup
This commit is contained in:
parent
2a203f6f29
commit
97d914bce4
26 changed files with 198 additions and 221 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue