Rsa encryption and decrypt rest service


I have the rest service where decrypt using RSA. Using PrivateKey for decrypt

RSACryptoServiceProvider rsaCryptoServiceProvider;
rsaCryptoServiceProvider.Decrypt(content, false);

I need ecnrypt using RSA in Ionic app, I have one public key, 2048, I need encrypt base in this publickey, before encrypt I need tranform to hex.

I try use cryptico.js

Try this