sha1.html now displays sha1.js test result

This commit is contained in:
swaits committed 2010-11-30 09:14:15 -08:00
1 parent 35b5742775
commit 00576f479f
2 files changed
+9 -8

No files matched your search

+9 -4
View File
@@ -5,10 +5,15 @@
<title>Sha1</title>
<script src='sha1.js'></script>
<script type="text/javascript" charset="utf-8">
function run()
{
document.getElementById('result').innerHTML = sha1("The quick brown fox jumps over the lazy dog");
}
</script>
</head>
<body>
blah
<body onload="run()">
<div id="result">Calculating...</div>
</body>
</html>
-4
View File
@@ -79,7 +79,3 @@ function sha1(text)
return message;
}
str_to_bytes("A\u1242B\u4123C"); // [65, 18, 66, 66, 65, 35, 67]
sha1("The quick brown fox jumps over the lazy dog"); // 2fd4e1c6 7a2d28fc ed849ee1 bb76e739 1b93eb12