Tabellenbreite gefixed VERAG TEstsuite gefixed dass es nicht alles ausbremst beim loginscreen
This commit is contained in:
@@ -130,7 +130,7 @@ Public Class TestPerformance
|
||||
For zahl As Integer = 0 To zahlint
|
||||
sw1.Start()
|
||||
hashsalts.Add(VERAG_VARIABLES.GenerateSalt(VERAG_VARIABLES.RandomInteger(95, Math.Pow(2, 8))))
|
||||
arrzahl_iterats.Add(VERAG_VARIABLES.RandomInteger(5, 7))
|
||||
arrzahl_iterats.Add(VERAG_VARIABLES.RandomInteger(Math.Pow(2, 2), Math.Pow(2, 5)))
|
||||
arrzahl.Add(zahlint)
|
||||
sw1.Stop()
|
||||
arrzeitp1.Add(sw1.ElapsedMilliseconds)
|
||||
@@ -190,9 +190,9 @@ Public Class TestPerformance
|
||||
Next
|
||||
Dim pw As String
|
||||
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
pw = "PasswordV" + VERAG_VARIABLES.RandomInteger(5, zahlint - 5).ToString + "!!%"
|
||||
pw = "PasswordV$$$" + VERAG_VARIABLES.RandomInteger(115, 120 + (zahlint - 5)).ToString + "!!%"
|
||||
Else
|
||||
pw = "&WAS5$WdAG&" + VERAG_VARIABLES.RandomInteger(75, zahlint - VERAG_VARIABLES.RandomInteger(5, 7)).ToString + "#*p(=+UY"
|
||||
pw = "&WAS5$WdAG&" + VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(1200, 2512), 3000 + (zahlint - VERAG_VARIABLES.RandomInteger(5, 17))).ToString + "##*p(=+UY"
|
||||
End If
|
||||
For zahl As Integer = 0 To zahlint
|
||||
sw2.Start()
|
||||
|
||||
@@ -9,7 +9,7 @@ Public Class VERAG_VARIABLES
|
||||
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
Return RandomInteger(Math.Pow(2, 4), Math.Pow(2, 6))
|
||||
Else
|
||||
Return RandomInteger(Math.Pow(2, 4), Math.Pow(2, 6))
|
||||
Return RandomInteger(Math.Pow(2, 5), Math.Pow(2, 7))
|
||||
End If
|
||||
End Function
|
||||
|
||||
@@ -48,7 +48,7 @@ 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 = 30
|
||||
Argon.DegreeOfParallelism = 14
|
||||
Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 3)
|
||||
Argon.MemorySize = (((nIterations * 7.685 - (nIterations * 0.56) / 1.85 * 2.28) / 10.28) + 1.024 * 416)
|
||||
Return Argon.GetBytes(nHash)
|
||||
@@ -69,8 +69,8 @@ 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 = 38
|
||||
Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 7)
|
||||
Argon.DegreeOfParallelism = 8
|
||||
Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 4)
|
||||
Argon.MemorySize = (((nIterations * 9.685 - (nIterations * 0.56) / 1.85 * 2.28) / 10.28) + 1.024 * 416)
|
||||
Return Await Argon.GetBytesAsync(nHash)
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user