-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode Support #46
Unicode Support #46
Conversation
…ho, of course, lift sha256 from google closure...)
+1, have reviewed. This looks great. Solid ACK from me. |
I think this would be a good time to switch to using the optimized Node.js crypto library for the sha256 function, similar to bitcore, and send it a Buffer. If the Also as mentioned in #44 we can include browser builds in tagged releases (not in master), however can fix this is a separate pull request that updates the release process. Edit: Both |
Does Google closure's As you know I have a port of BitAuth to the JVM in clojure here: https://github.com/xcthulhu/clj-bitauth My tests are written in an isomorphic fashion where they compile to both Java byte code and javascript, and right now all my tests are passing and I have perfect feature parity. This is currently working with my stack to be honest, but I'm willing to change my upstream code if javascript's |
The core module now handles signing Unicode payloads in a platform independent way. I have tested my changes both in the mocha tests here and also in a Clojure/JVM port of bitauth I have authored here:
https://github.com/xcthulhu/clj-bitauth/blob/utf-16/test/bitauth/core_test.cljc#L95
I also fixed the
make_dist.sh
script, and put the browser bundles back in thedist
directory as per a request by @crisptrutski, the CLJSJS maintainer in a discussion I had with him here: cljsjs/packages#223TODO:
bitauth.encrypt
andbitauth.decrypt
don't handle unicode in a platform independent mannerbitauth.encrypt
andbitauth.decrypt
would be nice, rather than just elementary passwords, as I discuss in Add encryption #38I'm using BitAuth as my security layer for my own project. I had admittedly invented a similar protocol while I was doing contract work for Ethereum, and I figured since you guys already had an effort I would build off of this.
If you guys want, I would love to build on the BitAuth standard and make pull requests upstream as my design requirements dictate I make extensions.