mirror of
https://github.com/lynchmarkHQ/lynchmark.com.git
synced 2026-10-19 10:14:51 +00:00
Docs: Update benchmark results
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
async function hashPassword(password, salt) {
|
||||
const { scrypt } = await import('https://cdn.jsdelivr.net/npm/scrypt-js@3.0.1/+esm');
|
||||
const encoder = new TextEncoder();
|
||||
const enc = new TextEncoder();
|
||||
const hash = await scrypt(
|
||||
encoder.encode(password),
|
||||
encoder.encode(salt),
|
||||
enc.encode(password),
|
||||
enc.encode(salt),
|
||||
1024,
|
||||
8,
|
||||
1,
|
||||
@@ -11,4 +11,6 @@ async function hashPassword(password, salt) {
|
||||
);
|
||||
return Array.from(hash, b => b.toString(16).padStart(2, '0')).join('');
|
||||
}
|
||||
export default hashPassword;
|
||||
export default hashPassword;
|
||||
// Generation time: 2.743s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user