Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>  
  <script src="https://cdn.rawgit.com/sytelus/CryptoJS/master/rollups/md5.js"></script>
  <script src="https://cdn.rawgit.com/sytelus/CryptoJS/master/components/enc-base64-min.js"></script>
</head>
<body>
<script>
    //The hash algorithms accept either strings or instances of CryptoJS.lib.WordArray. 
    //A WordArray object represents an array of 32-bit words. 
    //When you pass a string, it's automatically converted to a WordArray encoded as UTF-8.
    var hash = CryptoJS.MD5("Message");
    console.log(hash.toString());
</script>
<script>
    var hash = CryptoJS.MD5("Message");
    console.log(hash.toString(CryptoJS.enc.Base64));  
</script>
<script>
    var wordArray = CryptoJS.enc.Utf8.parse('ð¤¢');
    var utf8  = CryptoJS.enc.Utf8.stringify(wordArray);
    console.log(utf8);
    var hash = CryptoJS.MD5(wordArray);
    console.log(hash.toString());
  
    var hash2 = CryptoJS.MD5(utf8);
    console.log(hash2.toString());  
  
    var hash3 = CryptoJS.MD5('ð¤¢');
    console.log(hash3.toString());  
</script>  
  
  
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers