Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html>
  <body class="s">
    <h4>Crypto.js for hashing and others...</h4>
    <br />
    md5 hash:<div id="s" class="sh"></div>
    <br />
    sha1 hash:<div id="s1" class="sh"></div> <br />
    sha256 hash:<div id="s2" class="sh" ></div> <br />
    sha512 hash:<div id="s3" class="sh"></div>
    <br /> sha3 hash:<div id="s4" class="sh"></div>
    <br /> AES hash encrypted with passphrase:<div id="s5" class="sh"></div>
    <br /> AES hash decrypted with passphrase:<div id="d5" class="sh"></div>
    
    <br /> rabbit hash encrypted with passphrase:<div id="s7" class="sh"></div>
    <br /> rabbit hash decrypted with passphrase:<div id="s8" class="sh"></div>
   <br /> RC4 hash encrypted with passphrase:<div id="s9" class="sh"></div>
    <br /> RC4 hash decrypted with passphrase:<div id="s10" class="sh"></div>
    <br />
    <br />
    www.i-visionblog.com - (c)2014 - [email protected] share is care -
  </body>
</html>
              
            
!

CSS

              
                .s
{
width:90%;
  background-color:#F7F7F7;
  font-weight:bold;
 
}
.sh
{
  color:red;
  font-weight:bold;
  font-family:"verdana",Georgia,Serif;
}
              
            
!

JS

              
                var hash = CryptoJS.MD5("shivasurya");
document.getElementById('s').innerHTML=hash;
var hash = CryptoJS.SHA512("shivasurya");
document.getElementById('s3').innerHTML=hash;
var hash = CryptoJS.SHA1("shivasurya");
document.getElementById('s1').innerHTML=hash;
var hash = CryptoJS.SHA256("shivasurya");
document.getElementById('s2').innerHTML=hash;
var hash = CryptoJS.SHA3("shivasurya",{ outputLength: 224 });
document.getElementById('s4').innerHTML=hash;
var encrypted = CryptoJS.AES.encrypt('shivasurya is missing someone so badly', 'surya');
document.getElementById('s5').innerHTML=encrypted;
var decrypted = CryptoJS.AES.decrypt(encrypted, 'surya');
var plaintext = decrypted.toString(CryptoJS.enc.Utf8);
document.getElementById('d5').innerHTML=plaintext;
var encrypted = CryptoJS.RC4.encrypt("Shiva is being missed by someone...", "surya");
document.getElementById('s7').innerHTML=encrypted;
var decrypted = CryptoJS.RC4.decrypt(encrypted, "surya");
var simple=decrypted.toString(CryptoJS.enc.Utf8);
document.getElementById('s8').innerHTML=simple;
 var encrypted = CryptoJS.RC4.encrypt("love yourself", "pinku");
document.getElementById('s9').innerHTML=encrypted;
var decrypted = CryptoJS.RC4.decrypt(encrypted, "pinku");
var simple=decrypted.toString(CryptoJS.enc.Utf8);
document.getElementById('s10').innerHTML=simple;
              
            
!
999px

Console