-
Notifications
You must be signed in to change notification settings - Fork 671
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
Using ssh2 in the browser with forge? #331
Comments
As long as it provides all the necessary crypto pieces with the same API as node, it should work fine. However, Another problem will be getting TCP socket support in the browser. This could be done with a Flash or WebSocket bridge I suppose, but such a bridge again would need to be node API compatible. I know someone had written a browserify module specifically for Chrome Apps that provided a |
Right, implementing the node APIs in the browser would work, but that's a lot of work in some cases. Node streams, for example, are incredibly complex. It's probably not worth your trouble since this is an edge cases (ssh from the browser), but an easier method overall would be to design a simple abstraction layer used internally and write adaptors to consume both node and the other APIs. |
See the comments at creationix/js-git#122 (comment) for motivation in my use case. |
Doesn't |
Right, there are probably already a couple implementations of node streams, but why include all that code weight and complexity when it's not visible to the end user and you only need a fraction of the capabilities anyway? |
judging from browserify/diffie-hellman#16 it is at least somewhat possible to use crypto browserify with it |
Closing this for now as this module's main focus is node. If third-party modules like |
I know you're writing this for node using the built-in ssh bindings, but I wonder how much work it would be to have the option to work in the browser using the API provided by https://github.com/digitalbazaar/forge?
The text was updated successfully, but these errors were encountered: