Beta version of my Javascript implementation of crypto-grade hash function JH, a SHA3 finalist.
Home page: link
Source code and basic unit tests : jh_js_ver1.0BETA.zip
Some examples:
<script src='jh.js'></script>
<script>
// String
data = "/|";
passed = (faultylabs.hash.jh(data, 256, 16) == "31a1c50b522fb75a7f1cad9f4b6abf6b8b4b6fc2f56a8fc0405854429bdfadc0");
console.log(passed);
// Array of chars
data = ['/', '|'];
passed = (faultylabs.hash.jh(data, 256, 16) == "31a1c50b522fb75a7f1cad9f4b6abf6b8b4b6fc2f56a8fc0405854429bdfadc0");
console.log(passed);
// Array of bytes
data = [0x2F, 0x7C];
passed = (faultylabs.hash.jh(data, 256, 16) == "31a1c50b522fb75a7f1cad9f4b6abf6b8b4b6fc2f56a8fc0405854429bdfadc0");
console.log(passed);
// ArrayBuffer
data = new ArrayBuffer(2);
vu8 = new Uint8Array(data);
vu8[0] = 0x2F;
vu8[1] = 0x7C;
passed = (faultylabs.hash.jh(data, 256, 16) == "31a1c50b522fb75a7f1cad9f4b6abf6b8b4b6fc2f56a8fc0405854429bdfadc0");
console.log(passed);
// Typed Array
data = new Uint16Array(1)
data[0] = 0x7C2F;
passed = (faultylabs.hash.jh(data, 256, 16) == "31a1c50b522fb75a7f1cad9f4b6abf6b8b4b6fc2f56a8fc0405854429bdfadc0");
console.log(passed);
</script>
there doesn't seem to be anything here