A Pen by Edward FauchonJones on CodePen.
Created
April 4, 2017 13:20
-
-
Save Galadirith/fc08949bb1ea68bbf5c5fec02594623a to your computer and use it in GitHub Desktop.
sha1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="console"> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require ['https://rawgit.com/emn178/js-sha1/master/build/sha1.min.js'], (sha1) -> | |
content = 'hello, world' | |
blobContent = "blob #{content.length}\0hello, world" | |
$('#console').append sha1(blobContent) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://requirejs.org/docs/release/2.3.3/minified/require.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<script src="https://rawgit.com/emn178/js-sha1/master/build/sha1.min.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment