Hashfunktionen wurden implementiert!

This commit is contained in:
ja
2021-12-02 14:26:02 +01:00
parent f597d6af74
commit 8529caaa5c
2 changed files with 10 additions and 6 deletions

View File

@@ -525,7 +525,7 @@ Partial Class login_Change_PW
If isnewSession = False Then
Dim token As String
If String.IsNullOrEmpty(username) = False AndAlso String.IsNullOrEmpty(email) = False Then
Dim intzahl = RandomInteger(Math.Pow(2, 6), Math.Pow(2, 8))
Dim intzahl = RandomInteger(Math.Pow(2, 8), Math.Pow(2, 16))
Dim Rand As Random = New Random
If String.IsNullOrEmpty(password) = False Then
Try
@@ -534,7 +534,7 @@ Partial Class login_Change_PW
token = VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(VERAG_VARIABLES.HashPassword(tok, salt, 1991, intzahl))
Return token
Catch Ex As Exception
Dim intzahl2 = RandomInteger(Math.Pow(2, 6), Math.Pow(2, 8))
Dim intzahl2 = RandomInteger(Math.Pow(2, 7), Math.Pow(2, 13))
'Dim Msg, Style, Title As String
'Msg = "Token Generation failed" & vbCrLf & "A new E-mail has been sent to the intern e-mail given."
'Style = vbRetry + vbExclamation + vbDefaultButton1