mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-07-18 05:45:46 +00:00
Docs: Update benchmark for openai/gpt-5.6-luna EFF:high
This commit is contained in:
15
tests/10_scrypt_hash/outputs/openai_gpt-5.6-luna EFF_high.js
Normal file
15
tests/10_scrypt_hash/outputs/openai_gpt-5.6-luna EFF_high.js
Normal file
@@ -0,0 +1,15 @@
|
||||
async function hashPassword(password, salt) {
|
||||
const scryptModule = await import(
|
||||
"https://cdn.jsdelivr.net/npm/scrypt-js@3.0.1/+esm"
|
||||
);
|
||||
const scrypt = scryptModule.default ?? scryptModule.scrypt;
|
||||
|
||||
const passwordBytes = new TextEncoder().encode(password);
|
||||
const saltBytes = new TextEncoder().encode(salt);
|
||||
const hash = await scrypt(passwordBytes, saltBytes, 1024, 8, 1, 32);
|
||||
|
||||
return Array.from(hash, byte => byte.toString(16).padStart(2, "0")).join("");
|
||||
}
|
||||
export default hashPassword;
|
||||
// Generation time: 8.694s
|
||||
// Result: FAIL
|
||||
Reference in New Issue
Block a user