I am currently engaged in developing an extension for Business Central cloud runtime 10.0.
My objective is to ensure the security of sensitive customer data by encrypting it before transmitting it to an Azure Function. The function will then decrypt it and further encrypt it with PGP, as mandated by business requirements.
Prior to transmitting this sensitive data, I aim to encrypt it to maintain its security throughout the HTTP request process.
However, I've encountered a limitation with System.Encrypt, which is restricted to text[215], whereas the data I need to encrypt exceeds 10k characters.
I am seeking suggestions on how to do this without resorting to uploading the text to blob storage and retrieving it through an Azure Function.
Alternatively, if there is a method to perform PGP encryption within Business Central, that would also be a viable solution. However, since it's not an on-premise setup, utilizing .NET DLLs isn't doable, and I'd likely need to develop a custom implementation.
Any insights or recommendations would be greatly appreciated.