mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 08:37:56 +00:00
Docs: Update benchmark results
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
const e=new TextEncoder
|
||||
const hashPassword=async(p,s)=>{
|
||||
const{ scrypt }=await import('https://cdn.skypack.dev/scrypt-js')
|
||||
const {scrypt}=await import('https://cdn.skypack.dev/scrypt-js')
|
||||
const e=new TextEncoder
|
||||
const h=await scrypt(e.encode(p),e.encode(s),1024,8,1,32)
|
||||
return Array.from(h,x=>(x+256).toString(16).slice(-2)).join('')
|
||||
return [...h].map(b=>b.toString(16).padStart(2,'0')).join('')
|
||||
}
|
||||
export default hashPassword;
|
||||
export default hashPassword;
|
||||
// Generation time: 8.405s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user