Verbesserung der trennung der Logiken wischen mobiler und Desktopansicht. Dadurch Verbesseurng der Leistung.
This commit is contained in:
@@ -44,14 +44,14 @@ Public Class VERAG_VARIABLES
|
||||
Argon.Salt = salt
|
||||
Argon.DegreeOfParallelism = 28
|
||||
Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 3)
|
||||
Argon.MemorySize = My.Computer.Info.AvailablePhysicalMemory / 30
|
||||
Argon.MemorySize = (((nIterations * 15.98 - (nIterations * 10.23) / 14 * 2) / 4.058) + 1 * 190)
|
||||
Return Argon.GetBytes(nHash)
|
||||
Else
|
||||
Dim Argon As Argon2id = New Argon2id(Encoding.UTF8.GetBytes(VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(password)))
|
||||
Argon.Salt = salt
|
||||
Argon.DegreeOfParallelism = 48
|
||||
Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 4)
|
||||
Argon.MemorySize = My.Computer.Info.AvailablePhysicalMemory / 30
|
||||
Argon.MemorySize = (((nIterations * 17.98 - (nIterations * 10.23) / 1.85 * 2.28) / 10.28) + 1024 * 878) / 13.1
|
||||
Return Argon.GetBytes(nHash)
|
||||
End If
|
||||
|
||||
@@ -64,14 +64,14 @@ Public Class VERAG_VARIABLES
|
||||
Argon.Salt = salt
|
||||
Argon.DegreeOfParallelism = 24
|
||||
Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 3)
|
||||
Argon.MemorySize = My.Computer.Info.AvailablePhysicalMemory / 30
|
||||
Argon.MemorySize = (((nIterations * 15.98 - (nIterations * 10.23) / 14 * 2) / 4.058) + 1 * 190)
|
||||
Return Await Argon.GetBytesAsync(nHash)
|
||||
Else
|
||||
Dim Argon As Argon2id = New Argon2id(Encoding.UTF8.GetBytes(VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(password)))
|
||||
Argon.Salt = salt
|
||||
Argon.DegreeOfParallelism = 48
|
||||
Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 4)
|
||||
Argon.MemorySize = My.Computer.Info.AvailablePhysicalMemory / 30
|
||||
Argon.MemorySize = (((nIterations * 17.98 - (nIterations * 10.23) / 1.85 * 2.28) / 10.28) + 1024 * 878) / 13.1
|
||||
Return Await Argon.GetBytesAsync(nHash)
|
||||
End If
|
||||
End Function
|
||||
|
||||
Reference in New Issue
Block a user