-
Notifications
You must be signed in to change notification settings - Fork 27
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
standalone js file? #25
Comments
you're going to want to do |
and you'd actually want to do |
okk, so I did that, and got this as a result: I only have the crypto.getRandomValues() function and it won't take any value I give it. Sorry to bother you so much, but could you show me an example. Something I could paste into the console to see it work, like: I promise you I'll do something cool with it and credit you properly (I'm planning on mixing it with http://myjson.com/ and doing "serverless" stuff) |
codepen doesn't execute the js in the same context as the console of the page so that's why it doesn't work. more generally this is meant to work with browserify or webpack so if you build an app with those you can just do also if your doing stuff in the browsery you almost certainly want to be doing elliptical curve diffie-hellman not the regular kind as this doesn't really scale as well to stronger key size. |
if your using ecdh you can also use my other module native-crypto which will use built in browser stuff, once I merge calvinmetcalf/native-crypto#19 |
I tried running "browserify index.js" to get the actual lib but I doesn't seem to work. It would be awesome if you could show and example of it working to get an idea on how to use it.
The text was updated successfully, but these errors were encountered: