Simple RSA Encrypt in Angular 9

373 views
Skip to first unread message

Joshua Wise

unread,
May 18, 2020, 12:52:08 PM5/18/20
to Angular and AngularJS discussion
Hi all,

I have been bashing my head against this for a day and I can't find a simple answer. I want to encrypt a user's password when I send it to the server with RSA encryption. I have a Modulus and Exponent generated from a .net Core API and I'm sending the public key back to the Angular app. All of that is easy enough. But I can't find a simple method of taking that information and encrypting the user's password with the public key M/E pair. I've tried examples from JSEncrypt and Node-RSA but neither seems to present a good Angular simple implementation of StringToEncrypt, Modulus, Exponent => encrypted result. 

Does anyone have any good suggestions for this? 

Thanks!
Josh
Reply all
Reply to author
Forward
0 new messages