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