Änderungen

This commit is contained in:
ja
2021-12-06 11:56:26 +01:00
parent 7a4a2b70a1
commit 4acaa9ff71
6 changed files with 148 additions and 25 deletions

View File

@@ -34,7 +34,7 @@ Public Class VERAG_VARIABLES
Argon.Salt = salt
Argon.DegreeOfParallelism = 24
Argon.Iterations = nIterations
Argon.MemorySize = ((nIterations * 1 - nIterations / 2 * 2) / 1.05) + 1 * 150
Argon.MemorySize = (((nIterations * 1 - nIterations / 4 * 2) / 1.05) + 1 * 150)
Return Await Argon.GetBytesAsync(nHash)
'Return Convert.ToBase64String(Argon.GetBytes(nHash))
'Return Argon.GetBytes(nHash)
@@ -46,7 +46,7 @@ Public Class VERAG_VARIABLES
Argon.Salt = salt
Argon.DegreeOfParallelism = 48
Argon.Iterations = nIterations
Argon.MemorySize = ((nIterations * 1 + nIterations / 2 * 2) / 0.08) + 1 * 170
Argon.MemorySize = ((((nIterations * 2 - nIterations / 1.75 * 2.08) / 0.08) + 1 * 256) / 2)
Return Await Argon.GetBytesAsync(nHash)
End If
End Function