salt
This commit is contained in:
1 parent
d68fd13be8
commit
cd3dc2151b
1 file changed
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user