Revert "änderungen login speed und Default2- Admin test hash algorithmen"
This reverts commit 0ee22bff89.
This commit is contained in:
@@ -6,7 +6,7 @@ Partial Class login_FLEX
|
||||
Private Customer_ID As String = String.Empty
|
||||
Private UserNaMe As String = String.Empty
|
||||
Private passw As String = String.Empty
|
||||
|
||||
Private USERID As String = String.Empty
|
||||
Private salt As Byte()
|
||||
Private intzahl As Integer
|
||||
Public intzahliterats As Integer = -1
|
||||
@@ -14,6 +14,7 @@ Partial Class login_FLEX
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
End Sub
|
||||
Protected Async Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
|
||||
If Page.IsPostBack = True Then
|
||||
Page.MaintainScrollPositionOnPostBack = True
|
||||
intzahliterats = VERAG_VARIABLES.getiterationnumber
|
||||
@@ -21,10 +22,10 @@ Partial Class login_FLEX
|
||||
Try
|
||||
Dim teststr = String.Empty
|
||||
If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
intzahliterats = VERAG_VARIABLES.RandomInteger(Math.Pow(2, 8), Math.Pow(2, 15))
|
||||
intzahliterats = VERAG_VARIABLES.RandomInteger(Math.Pow(2, 8), Math.Pow(2, 17))
|
||||
teststr = Await TestPerformance.TestHashrateServerAsync(0.052 * VERAG_VARIABLES.GetCpuSpeed())
|
||||
Else
|
||||
intzahliterats = VERAG_VARIABLES.RandomInteger(Math.Pow(2, 8), Math.Pow(2, 15))
|
||||
intzahliterats = VERAG_VARIABLES.RandomInteger(Math.Pow(2, 8), Math.Pow(2, 17))
|
||||
teststr = Await TestPerformance.TestHashrateServerAsync(0.052 * VERAG_VARIABLES.GetCpuSpeed())
|
||||
End If
|
||||
If String.Equals(teststr, String.Empty) = False Then
|
||||
@@ -216,7 +217,7 @@ Partial Class login_FLEX
|
||||
End If
|
||||
|
||||
If String.Equals(tb3.Text, dr("Password")) = True Then
|
||||
intzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(95, 210), Math.Pow(2, 8))
|
||||
intzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(95, 200), Math.Pow(2, 8))
|
||||
salt = VERAG_VARIABLES.GenerateSalt(intzahl)
|
||||
Dim hashpw As Byte() = Await VERAG_VARIABLES.HashPasswordAsync(passw, salt, intzahliterats, intzahl)
|
||||
If Await VERAG_VARIABLES.VerifyhashAsync(dr("Password").ToString, salt, hashpw, intzahliterats, intzahl) = True Then
|
||||
@@ -445,7 +446,6 @@ Partial Class login_FLEX
|
||||
Protected Sub CreateTestusers_Click(sender As Object, e As EventArgs)
|
||||
Dim str As String = String.Empty
|
||||
Dim textbox As TextBox = Page.FindControl("txt_numbuserstes")
|
||||
|
||||
str = textbox.Text
|
||||
|
||||
TestPerformance.createnUsers(Integer.Parse(str))
|
||||
|
||||
Reference in New Issue
Block a user