Get started with argon2-browser CDN
MIT licensed
Argon2 library: JS hashing/verification for web apps.
Tags:- argon2
- keeweb
- webassembly
- wasm
- hash
- keepass
- kdf
Stable version
Copied!
How to start using argon2-browser CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with argon2-browser CDN - cdnhub.io</title>
<script src="https://cdn.jsdelivr.net/npm/argon2-browser@1.18.0/argon2-browser.min.js"></script>
</head>
<body>
<button id="hash-button">Hash Password</button>
<script>
const argon2 = argon2id.create();
document.getElementById('hash-button').addEventListener('click', async () => {
const password = 'my-password';
const hashedPassword = await argon2.hash(password, {
type: argon2.argon2id.Argon2i, // Argon2i for password hashing
memoryCost: 16 * 1024, // Memory cost in kB
timeCost: 16, // Time cost in iterations
parallelism: 1, // Degree of parallelism
});
console.log('Hashed Password:', hashedPassword.toString());
});
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!