As the title says, I want to be able to use my RSA public key to be able to encrypt customers' data and send it to a server where it will decrypt it using the private key.
As I'm not really familiar with cryptography I'm here to ask for some help.
I want to be able to encrypt/decrypt the data using these keys, like importing them and using them directly in my C# program, I found a way on the internet but it requires some others .dll which I want to avoid.
Is there a way to simply import the keys as plain text and uses them in my program?
Thanks for your help!
Edit :
That's what the pubKey variable looks like
-----BEGIN PUBLIC KEY----- MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJ2qokdmz0Vp9HKxPkJaykFwxSAv+5dN Aa5kF1bzxff7bXK/sGcuyby+iPggX4kQdFZHFHDRd9GumEJzSuE4rgkCAwEAAQ==
-----END PUBLIC KEY-----
That's what I have to work with