Posts

Showing posts from February, 2024

RSA Encryption with Power Platform Custom Connector

Image
  Introduction : I recently embarked on a mission to bring RSA encryption into the world of Power Platform. But it wasn't easy. The tools available just didn't fit the bill. The main problem? The C# code needed for encryption was outdated, leaving out crucial methods. Plus, there was no direct way to encrypt using the given key. So, I had to get creative. The Challenge: Picture this: I'm staring at a mountain of code, knowing I have to find a way to make it work within the limited environment of Power Platform. The biggest hurdle? I needed to extract specific parts from the public key – the exponent and modulus – to enable encryption. Solving the Encryption: Armed with the extracted components, I was ready to put the pieces together. With the exponent and modulus in hand, I could finally encrypt data within Power Platform. What once seemed like an impossible task was now within reach, thanks to perseverance and a little creativity. C# Code Part using Newtonsoft.Json.Linq; ...