GUI Anpassungen spwie fIX Buffergröße bei PW Hashimgvorgang

This commit is contained in:
ja
2022-02-02 15:09:04 +01:00
parent f67a55b0b7
commit e1b75ec277
6 changed files with 3374 additions and 3364 deletions

View File

@@ -22,9 +22,9 @@ Public Class VERAG_VARIABLES
End Function
Shared Function getiterationnumber() As Integer
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
Return RandomInteger(Math.Pow(2, 2), (0.45 * GetCpuSpeed()))
Return RandomInteger(Math.Pow(2, 2), (0.55 * GetCpuSpeed()))
Else
Return RandomInteger(Math.Pow(2, 3), (0.47 * GetMaxCpuSpeed()))
Return RandomInteger(Math.Pow(2, 3), (0.57 * GetMaxCpuSpeed()))
End If
End Function
@@ -62,9 +62,9 @@ Public Class VERAG_VARIABLES
Else
Dim Argon As Argon2id = New Argon2id(Encoding.UTF8.GetBytes(VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(password)))
Argon.Salt = salt
Argon.DegreeOfParallelism = 18
Argon.DegreeOfParallelism = 4
Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 4)
Argon.MemorySize = (((nIterations * 9.88 - (nIterations * 10.23) / 8.85 * 2.28) / 10.28) + 2 * 878) / 13.1
Argon.MemorySize = (((nIterations * 12.88 - (nIterations * 10.23) / 8.85 * 2.28) / 10.28) + 2 * 878) / 13.1
Return Argon.GetBytes(nHash)
End If
@@ -82,9 +82,9 @@ Public Class VERAG_VARIABLES
Else
Dim Argon As Argon2id = New Argon2id(Encoding.UTF8.GetBytes(VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(password)))
Argon.Salt = salt
Argon.DegreeOfParallelism = 28
Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 4)
Argon.MemorySize = (((nIterations * 10.88 - (nIterations * 10.23) / 2.85 * 2.28) / 10.28) + 2 * 178) / 13.1
Argon.DegreeOfParallelism = 14
Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 3)
Argon.MemorySize = (((nIterations * 12.88 - (nIterations * 10.23) / 8.85 * 2.28) / 10.28) + 2 * 878) / 13.1
Return Await Argon.GetBytesAsync(nHash)
End If
End Function