salt
This commit is contained in:
parent
cd3dc2151b
commit
c73aeb3010
2
main.go
2
main.go
|
@ -182,7 +182,7 @@ func modifyPasswordFile(email, password string) bool {
|
|||
}
|
||||
|
||||
func createPasswordEntry(email, password string) string {
|
||||
salt := RandStringBytesMaskImprSrc(10)
|
||||
salt := RandStringBytesMaskImprSrc(16)
|
||||
c := crypto.SHA512.New()
|
||||
c.Write([]byte(password))
|
||||
c.Write([]byte(salt))
|
||||
|
|
Loading…
Reference in New Issue