HTML code scrip for MD5 generator

Created on 3 July, 2024 • 112 views

HTML code scrip for MD5 generator

<!DOCTYPE html>

<html>

<head>

<title>MD5 Hash Generator</title>

<script src="https://github.com/topics/md5-hash"></script>

</head>

<body>

 <h1>MD5 Hash Generator</h1>

 <input type="text" id="inputText" placeholder="Enter your text here">

 <button onclick="generateHash()">Generate Hash</button>

 <br>

 <p id="hashOutput"></p>


 <script>

 function generateHash() {

  var inputText = document.getElementById("inputText").value;

  var hash = md5(inputText);

  document.getElementById("hashOutput").innerHTML = "MD5 Hash: " + hash;

 }

 </script>

</body>

</html>