Skip to content

Instantly share code, notes, and snippets.

@mattcollier
Created April 17, 2015 12:18
Show Gist options
  • Save mattcollier/20a9eceb4643800bfd39 to your computer and use it in GitHub Desktop.
Save mattcollier/20a9eceb4643800bfd39 to your computer and use it in GitHub Desktop.
Integrate forge module with atom-shell

I'm attempting to get the forge module to work with atom-shell.

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