mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 03:11:01 +00:00
Docs: Update benchmark for openrouter/aurora-alpha
This commit is contained in:
13
tests/10_scrypt_hash/outputs/openrouter_aurora-alpha.js
Normal file
13
tests/10_scrypt_hash/outputs/openrouter_aurora-alpha.js
Normal file
@@ -0,0 +1,13 @@
|
||||
async function hashPassword(p, s) {
|
||||
const e = new TextEncoder(),
|
||||
pU = e.encode(p),
|
||||
sU = e.encode(s),
|
||||
{ scrypt } = await import('https://cdn.jsdelivr.net/npm/scrypt-js@3.0.1/dist/scrypt.esm.js');
|
||||
const dk = await scrypt(pU, sU, 1024, 8, 1, 32);
|
||||
let h = '';
|
||||
for (let i = 0; i < dk.length; i++) h += dk[i].toString(16).padStart(2, '0');
|
||||
return h;
|
||||
}
|
||||
export default hashPassword;
|
||||
// Generation time: 1.126s
|
||||
// Result: FAIL
|
||||
Reference in New Issue
Block a user