title: Forge JS Library - How to define RSA publicKey?
body: <p>I am using the <a href="https://github.com/digitalbazaar/forge" rel="nofollow noreferrer" title="Forge Github Library">Forge Github Library</a> to deal with cryptography.</p>
  
  <p>I have a client with a server (node.js with the same library) socket communication (<a href="http://socket.io/" rel="nofollow noreferrer" title="socket.io">socket.io</a>). In the client side I use the forge to generate a RSA public/private key and send the publicKey to the server. But when I receive the key in the server, I do not receive the <code>encrypt</code> method in the object. 
  This is the object that I receive: <code>Object {n: BigInteger, e: BigInteger}</code>. So how can I create a RSA public key with this informations to encrypt a message?</p>