initial draft
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<cfapplication name="svc.utils" applicationTimeout = #CreateTimeSpan(0, 3, 0, 0)# />
|
||||
@@ -0,0 +1,15 @@
|
||||
<cfparam name="passwd" default=""/>
|
||||
<cfset tStart=GetTickCount()/>
|
||||
<cfoutput>
|
||||
<form action="" method="post">
|
||||
<input type="password" name="passwd"/>
|
||||
<input type="submit"/>
|
||||
<br/>
|
||||
#GenerateArgon2Hash(#passwd#, 'argon2id', 1, 16000, 2)#
|
||||
<!---input variant parallelizmFactor memoryCost iterations--->
|
||||
<!---https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#argon2id--->
|
||||
<br/>
|
||||
</form>
|
||||
#(GetTickCount()-tStart)# ms
|
||||
</cfoutput>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<cfparam name="passwd" default=""/>
|
||||
<cfset tStart=GetTickCount()/>
|
||||
<cfoutput>
|
||||
<form action="" method="post">
|
||||
<input type="password" name="passwd"/>
|
||||
<input type="submit"/>
|
||||
<br/>
|
||||
<cfset h=GenerateArgon2Hash(passwd, 'argon2id', 1, 16000, 2)/>
|
||||
<cfset hdef=GenerateArgon2Hash(passwd)/>
|
||||
<cfoutput>#h#</cfoutput><br/>
|
||||
<cfoutput>#hdef#</cfoutput><br/>
|
||||
<!---input variant parallelizmFactor memoryCost iterations--->
|
||||
<!--- in Lucee 6 optional arguments are not supported --->
|
||||
<!---https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#argon2id--->
|
||||
<br/>
|
||||
Argon2CheckHash(passwd, h, 'argon2id'):#Argon2CheckHash(passwd, h, 'argon2id')#<br/>
|
||||
Argon2CheckHash(passwd, h):#Argon2CheckHash(passwd, h)#<br/>
|
||||
|
||||
Argon2CheckHash(passwd, hdef, 'argon2id'):#Argon2CheckHash(passwd, hdef, 'argon2id')#<br/>
|
||||
Argon2CheckHash(passwd, hdef):#Argon2CheckHash(passwd, hdef)#<br/>
|
||||
</form>
|
||||
#(GetTickCount()-tStart)# ms
|
||||
</cfoutput>
|
||||
|
||||
Reference in New Issue
Block a user