Skip to content

Instantly share code, notes, and snippets.

@mattcollier
Created April 17, 2015 12:16
Show Gist options
  • Save mattcollier/a0287ecd47bbd7ac702e to your computer and use it in GitHub Desktop.
Save mattcollier/a0287ecd47bbd7ac702e to your computer and use it in GitHub Desktop.
Atom-shell integration with forge module
I'm attempting to get the [forge module](https://github.com/digitalbazaar/forge) to work with [atom-shell](https://github.com/atom/electron/).
Forge module mods:
https://github.com/mattcollier/forge/blob/master/js/prng.js#L23
Atom-shell renderer code
https://gist.github.com/mattcollier/3a713b4a076cd65257fe
The code as shown allows one to utilize webworkers while still getting a CSPRNG from io.js via openssl.
I found that I can't call include('remote') on line 23 as shown
All of this works as shown, but I would like to have a solution that could be incorporated into forge. Ideally, the code would behave properly whether it is loaded from the renderer or the main process.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment