Lookup on password, is that secure? 🤔
→ Feel free to download the database
Nevermind, I'll use the API or website
... but is it really secure? 🤔
Recap: characteristics of cryptographic hashing
Side note:
hashing in Node.js is super easy
// Hashing a super bad password in Node.js with SHA-1
const { hash } = require('node:crypto');
const hashedPassword = hash("SHA1", "password");
console.log(hashedPassword);const text = "password";
async function digestMessage(message) {
const msgUint8 = new TextEncoder().encode(message);
const hashBuffer = await window.crypto.subtle.digest("SHA-1", msgUint8);
const hashArray = Array.from(new Uint8Array(hashBuffer));
const hashHex = hashArray
.map((b) => b.toString(16).padStart(2, "0"))
.join("");
return hashHex;
}
digestMessage(text).then((digestHex) => console.log(digestHex));Side note:
hashing in a browser env is less easy (but doable)
What if someone intercepts the encrypted API responses, and probes the API based on response size? 🤔
Thanks for listening and keep your passwords safe!