title: How to use forge to decrypt rsa-cipher with given private key in javascript
body: <p>I trie to encrypt text in php and decrypt with javscript using RSA. In php i use <code>phpseclib</code>.
  For the client-site i've tried <code>forge</code> by digitalbazaar.</p>
  
  <p>According to the documentation, they create a private and a public key in one object and start the magic. </p>
  
  <pre><code> /*** Generating 1024-bit key-pair */  
   keys = forge.pki.rsa.generateKeyPair(1024);  
  
   /*** public key encryption */    
   var ciphertext = keys.publicKey.encrypt("Secret");     
  
   /*** private key decryption */  
   var plaintext  = keys.privateKey.decrypt(ciphertext); 
  </code></pre>
  
  <p>Is there a method to use a given private key as a string to decrypt messages in forge?</p>