BEZPIECZNE
Ładowanie IP...
<title>Hash Generator</title> Enter password:Select hash type: MD5 SHA1 MySQL NTLM SHA256 MD5 Email SHA256 Email SHA512
Generate Hash <script> function generateHash() { const password = document.getElementById("password").value; const hashType = document.getElementById("hash-type").value; switch (hashType) { case "md5": const md5Hash = crypto.createHash("md5"); md5Hash.update(password); const md5Result = md5Hash.digest("hex"); document.getElementById("result").innerHTML = `MD5 Hash: ${md5Result}`; break; case "sha1": const sha1Hash = crypto.createHash("sha1"); sha1Hash.update(password); const sha1Result = sha1Hash.digest("hex"); document.getElementById("result").innerHTML = `SHA1 Hash: ${sha1Result}`; break; case "mysql": // MySQL hash is a double SHA1 hash, so we need to hash the password twice const mysqlHash = crypto.createHash("sha1"); mysqlHash.update(password); const mysqlResult = mysqlHash.digest("hex"); mysqlHash.update(mysqlResult); mysqlResult = mysqlHash.digest("hex"); document.getElementById("result").innerHTML = `MySQL Hash: ${mysqlResult}`; break; case "ntlm": // NTLM hash is a MD4 hash, which is not supported by the Web Crypto API // We can use a library like js-md4 to implement the MD4 algorithm const ntlmHash = md4(password); document.getElementById("result").innerHTML = `NTLM Hash: ${ntlmHash}`; break; case "sha256": const sha256Hash = crypto.createHash("sha256"); sha256Hash.update(password); const sha256Result = sha256Hash.digest("hex"); document.getElementById("result").innerHTML = `SHA256 Hash: ${sha256Result}`; break; case "md5-email": // MD5 Email hash is a MD5 hash of the email address in lowercase const md5EmailHash = crypto.createHash("md5"); md5EmailHash.update(password.toLowerCase()); const md5EmailResult = md5EmailHash.digest("hex"); document.getElementById("result").innerHTML = `MD5 Email Hash: ${md5EmailResult}`; break; case "sha256-email": // SHA256 Email hash is a SHA256 hash of the email address in lowercase const sha256EmailHash = crypto.createHash("sha256"); sha256EmailHash.update(password.toLowerCase()); const sha256EmailResult = sha256EmailHash.digest("hex"); document.getElementById("result").innerHTML = `SHA256 Email Hash: ${sha256EmailResult}`; break; case "sha512": const sha512Hash = crypto.createHash("sha512"); sha512Hash.update(password); const sha512Result = sha512Hash.digest("hex"); document.getElementById("result").innerHTML = `SHA512 Hash: ${sha512Result}`; break; } } </script>