Click here to Skip to main content
16,016,537 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have been supplied with a public key (below) and need to encrypt some data before sending vian an http post. how do i go about this?

-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArwPRGxD31m9GoCucD8tU
OPvacmS9J93Oj5b8OsLEzeTYgvgPnGOej3pOfU9MFtN7XZTMQvGtFapdOLe7xX3B
q7bQEXJZQalUgaGMUikKvekw3rmfPUYzKu9TW1w4SJzlqp4DTZ2Qb7M1S7XI2a2B
dK47NmW3x6squnVDVoVmcdCwSW6U3bQOKlhKLdVzvT8i0dGnswrgcI7JzvdujdsR
qycx6N+NqlKxzMZ7iQLT2/x5PQFN1pRLPc07pRq9vwPyOxLYeq+CnYklAXw1/GIo
uv4mn7dQ2ljOkExFgPi98+dQ1h5kUk63bh9RsvtT4oGuoR/3Lr37kffQZse8io5U
dQIDAQAB
-----END PUBLIC KEY-----
Posted
Updated 10-Mar-15 23:33pm
v2

1 solution

Have a look at this: Public Key RSA Encryption in C# .NET[^] - it may not do exactly what you want (I have no idea what encryption algorithm you are supposed to use) but the principles will be the same for them all.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900