title: How to generate rsa key pair in client side using angular2?
body: <p>I need to know how to generate 'rsa' key-pair on the client-side using angular2. 
  I need to generate private/public key pair and save the private key into database and want to use public key inside the client side. How can I implement this?</p>
  
  <p>I found this <a href="https://www.npmjs.com/package/generate-rsa-keypair" rel="nofollow noreferrer">https://www.npmjs.com/package/generate-rsa-keypair</a> for generating key pair. But its for node? Can I implement it into my client side? If yes how? 
  Is any other way to implement this?</p>