Seperierung Login desktop von login mobil da sonst 2fach gehashed wurde, was die Leistung einschränkte.

This commit is contained in:
ja
2022-02-01 09:11:14 +01:00
parent fe2d41e4db
commit 04ccdfacf0
2 changed files with 3 additions and 3 deletions

View File

@@ -366,7 +366,7 @@ Partial Class login_FLEX
End If
If String.Equals(tb3_M.Text, dr("Password")) = True Then
intzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(95, 200), Math.Pow(2, 7))
intzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(95, 200), Math.Pow(2, 5))
salt = VERAG_VARIABLES.GenerateSalt(intzahl)
Dim hashpw As Byte() = Await VERAG_VARIABLES.HashPasswordAsync(passw, salt, intzahliterats, intzahl)
If Await VERAG_VARIABLES.VerifyhashAsync(dr("Password").ToString, salt, hashpw, intzahliterats, intzahl) = True Then