mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 03:11:01 +00:00
Docs: Update benchmark for minimax/minimax-m2.5
This commit is contained in:
10
tests/10_scrypt_hash/outputs/minimax_minimax-m2.5.js
Normal file
10
tests/10_scrypt_hash/outputs/minimax_minimax-m2.5.js
Normal file
@@ -0,0 +1,10 @@
|
||||
async function hashPassword(pwd,salt){
|
||||
const{scrypt}=await import('https://cdn.skypack.dev/scrypt-js');
|
||||
const pw=new TextEncoder().encode(pwd);
|
||||
const st=new TextEncoder().encode(salt);
|
||||
const h=await scrypt(pw,st,1024,8,1,32);
|
||||
return Array.from(h).map(b=>b.toString(16).padStart(2,'0')).join('');
|
||||
}
|
||||
export default hashPassword;
|
||||
// Generation time: 30.558s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user