Open y12studio opened 10 years ago
htop test(fail to work, crypto-js version issue) http://jsbin.com/fowul/3/edit
htop test ok(crypto-js v2.0) http://jsbin.com/fowul/5/edit
clone to y12studio/hotp-js modify for crypto-js 3.1.2?
http://jsbin.com/fowul/6/edit hotp-js/hotp/hotp.js at crypto-js-3.1.2 · y12studio/hotp-js upload to CORS-enable url and rename to hotp-y12.js
<script src="https://objects.dreamhost.com/y12jslib/hotp-y12.js"></script>
<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/hmac-sha1.js"></script>
<script type="text/javascript">
$(function() {
// Handler for .ready() called.
console.log('Ready!');
for (var i=0; i<2; i++) {
console.log('HOTP hex40')
console.log(hotp("3132333435363738393031323334353637383930",i,"hex40"));
console.log('HOTP dec6')
console.log(hotp("3132333435363738393031323334353637383930",i,"dec6"));
}
});
</script>
wwwtyro/cryptico
Test Github/JS Bin CORS js (fail to work) http://jsbin.com/yulij/4/edit