Is there a Rest API Call equivalent for this decrypting the SSN?
no use a function.
2 Likes
I am trying this code in 2024.2.0 and I am getting the following error:
There is no argument given that corresponds to the required parameter ‘key’ of ‘Encryptor.DecryptToString(string, byte, byte)’
Here is my statement in a BPM for an updatable BAQ
string decryptedData = Epicor.Security.Cryptography.Encryptor.DecryptToString(encryptedData);
I am trying to decode the vendor TIN which Epicor is encoding. I have no idea what the keys are for the encoding, so what do I put in to be able to decode it?
I did some looking in EpicCare and found this statement:
string decryptedData = Epicor.Security.Cryptography.ServerEncryptor.DecryptToString(encryptedData);
which gets rid of the compiler error. Notice the ServerEncryptor instead of just Encryptor.