I attempted to hash a text on the client-side. I used the code below to hash it, but unfortunately encountered a Reference Error.
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/md5.js">
</script>
</head>
<body>
<script>
var plaintext = "hiii";
var encrptedText = CryptoJs.md5(plaintext);
alert("Encrpted Text : " + encrptedText.toString());
</script>
</body>
</html>