Data encryption
Option 1: With certificate and without HMAC
Step - I have the required data in the JSON String
Step - Convert the JSON String to UTF8 Byte array
Step - Encrypt the UTF8 Byte array to the PKCS7 Envelope using the public key (Certificate download here)
Step - Convert acquired Byte array to Base64
Step - I will place the resulting Base64 String widget by using the setProtectedData (Base64String) method
Option 2: With certificate and HMAC key
Step - Contact mluvii and get HMAC Base64 key
Step - You have the required data in the JSON String
Step - Convert the JSON String to UTF8 Byte array
Step - Encrypt the UTF8 Byte array to the PKCS7 Envelope using the public key (Certificate can be downloaded here)
Step - Convert acquired Byte array to Base64
4th step: Encrypt byte array from step 3 with HMAC Base64 key
5th step - You will place the resulting Base64 String widget by using the setProtectedData (Base64String) method
Last updated