Änderungen

This commit is contained in:
ja
2022-01-20 17:04:10 +01:00
parent dbfa657a2e
commit 9bdccd31ce
8 changed files with 2377 additions and 1948 deletions

View File

@@ -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, 5), Math.Pow(2, 7))
Return RandomInteger(Math.Pow(2, 3), Math.Pow(2, 5))
End If
End Function
@@ -71,7 +71,7 @@ Public Class VERAG_VARIABLES
Argon.Salt = salt
Argon.DegreeOfParallelism = 48
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)
Argon.MemorySize = (((nIterations * 2.685 - (nIterations * 0.46) / 1.65 * 2.26) / 8.28) + 1.024 * 416)
Return Await Argon.GetBytesAsync(nHash)
End If
End Function