Decrypting data in C#
It is always relatively straightforward to encrypt and decrypt data in the same programming language. It can get a little more tricky when encrypting in one language and decrypting in another. To understand the complexities, check out the sample C# Web Services client in GitHub at https://github.com/iandavidwild/moodle-local_certificateapi/tree/develop/clients/csharp. This simple example employs two third-party libraries: one to connect to the Certificate API and obtain the data (CookComputing.XmlRpc, http://xml-rpc.net/) and one to decrypt the data (Bouncy Castle, https://www.bouncycastle.org/). Programming encryption and decryption methods are often quite difficult because of the lack of documentation (which, in some ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access