Hi there,
I am working on a combination of a plugin, endpoint, and JavaScript in order to encrypt and decrypt custom fields on two entities. My understanding is that the correct way to do this is to encrypt with a plugin on the Create or Load messages, then use JavaScript to decrypt onLoad (which will call a C# WebAPI endpoint to retrieve the decrypted value).
However, I have a problem. I don't want to check the encryption cipher and passphrase into version control -- I want to store them as environment variables. I can do this in C# and WebAPI, but is there an equivalent for CRM that the plugin can access? Can I set something on the PluginExecutionContext ahead of time that it can access? I understand that plug-ins are meant to be stateless so I can't pass something into the constructor function.
Any guidance or ideas would be greatly appreciated.
Cheers,
Sam
*This post is locked for comments