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