GUI Anpassungen spwie fIX Buffergröße bei PW Hashimgvorgang
This commit is contained in:
@@ -180,7 +180,7 @@ Public Class TestPerformance
|
||||
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
hashsalts.Add(VERAG_VARIABLES.GenerateSalt(VERAG_VARIABLES.RandomInteger(95, 104)))
|
||||
Else
|
||||
hashsalts.Add(VERAG_VARIABLES.GenerateSalt(VERAG_VARIABLES.RandomInteger(95, 105)))
|
||||
hashsalts.Add(VERAG_VARIABLES.GenerateSalt(VERAG_VARIABLES.RandomInteger(95, 104)))
|
||||
End If
|
||||
arrzahl_iterats.Add(VERAG_VARIABLES.RandomInteger(25, 45))
|
||||
arrzahl.Add(zahlint)
|
||||
@@ -192,7 +192,7 @@ Public Class TestPerformance
|
||||
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
pw = "PasswordV$S" + VERAG_VARIABLES.RandomInteger(115, 120 + (zahlint - 5)).ToString + "!!%"
|
||||
Else
|
||||
pw = "&WAS5$WdA&" + VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(120, 212), VERAG_VARIABLES.RandomInteger(300, Math.Pow(2, 13) + (zahlint - VERAG_VARIABLES.RandomInteger(5, 17))).ToString + "#*p(=+UY")
|
||||
pw = "PasswoWQrdV$S" + VERAG_VARIABLES.RandomInteger(115, 120 + (zahlint - 5)).ToString + "!!%"
|
||||
End If
|
||||
For zahl As Integer = 0 To zahlint
|
||||
sw2.Start()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user