y12studio / bkbc-tools

bkbc-tools java application
http://BlacKBananaCoin.org
Apache License 2.0
1 stars 1 forks source link

JavaScript crypto library test #23

Open y12studio opened 10 years ago

y12studio commented 10 years ago

wwwtyro/cryptico

Test Github/JS Bin CORS js (fail to work) http://jsbin.com/yulij/4/edit

Refused to execute script from 'https://raw.githubusercontent.com/wwwtyro/cryptico/master/aes.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. 
y12studio commented 10 years ago

crypto-js

crypto-js - JavaScript implementations of standard and secure cryptographic algorithms - Google Project Hosting jCryption 3.0 - openssl, javascript form encryption

sha3 test http://jsbin.com/fowul/4/edit

y12studio commented 10 years ago

HOTP

adulau/hotp-js

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>