title: Looking for advice on JavaScript RSA encryption
body: <p>I have a need to encrypt data entered by users on a form on the client side. My environment doesn't have ssl encryption, but I have found out that in my case I can achieve a similar result with RSA encryption. The public key will be used on the client side, and the owner of the private key will later be able to retrieve and decrypt the data.</p>
  
  <p>Before I go down that route, I'd like to make sure I haven't overlooked any key issue. So here are a few questions:</p>
  
  <ul>
  <li>can you recommend JavaScript libraries that do RSA encryption?</li>
  <li>what guarantees that they are reliable?</li>
  <li>what are the shortcomings of this technique? For example a lost message if the user closes the browser too fast?</li>
  </ul>
  
  <p>Generally speaking, I'd be interested in any advice on this JavaScript RSA encryption technique.</p>
  
  <p>Update: the only RSA JavaScript I have found so far is on this page:
  <a href="http://www.ohdave.com/rsa/" rel="noreferrer">http://www.ohdave.com/rsa/</a>
  Any feedback on that one?</p>
  
  <p>Also, I am ok with encryption other than RSA, if you have any to recommend. My constraint is to have a 100% JavaScript solution.</p>