Passing secure and sensitive data in a Formyoula URL using AES encryption

In this guide, we will explain how you can pass secure and sensitive data in a Formyoula URL using AES encryption. If you have any questions, please email us

Sharing a form link publicly with sensitive data and record id's in the URL can lead to security issues. To overcome these issues, Formyoula URL's allow users to pass confidential information using AES encryption.Please use the encrypt method of Salesforce crypto apex class to encrypt JSON data from Salesforce. Formyoula support to generate a secure SHA 256 key, that will be used to encrypt and decrypt secure query strings.

Once the key is generated, the SHA 256 key can be found on the account setup page ( ).

From Slitecom

The initialisation vector must be 128 bits (16 bytes.) and should be first 16 bytes of the SHA 256 key.

Salesforce example to create encrypted data.

//Set Key
Blob key = Blob.valueOf('tx@M_VCmD#yccau9&A?%7%xfjAC?7%s8');
// Get first 16 bytes of SHA 256 key.
Blob iv = Blob.valueOf('tx@M_VCmD#yccau9');
// Data should be a valid JSON
Blob  data = Blob.valueOf( '{"f17a-b50e-22ea": "secure value", "f677-a8a9-8872" : "record id"}');
String encrypted_data = EncodingUtil.base64Encode(Crypto.encrypt('AES256', key, iv, data));

JavaScript example using CryptoJS library.

//Create Key
var key = CryptoJS.enc.Utf8.parse('tx@M_VCmD#yccau9&A?%7%xfjAC?7%s8');
//Get Iv
var iv = CryptoJS.enc.Utf8.parse('tx@M_VCmD#yccau9');
//Data to be encrypted
var pw = CryptoJS.enc.Utf8.parse( '{"f17a-b50e-22ea": "secure value", "f677-a8a9-8872" : "record id"} );
var encrypted = CryptoJS.AES.encrypt(pw, key,{ iv: iv});
//Encrypt string
var encrypted_data = encrypted.toString();

Now the encrypted_data can be passed into the Formyoula form URL using f_d query string value.  

Please see below example URL.

For any questions, please contact us - 


  1. Use Repeat Groups to Create Salesforce Child and Related Records on Your Mobile Forms
  2. Lead Capture With Business Card
  3. Create Salesforce Event with Multiple Attendees
  4. Common Salesforce Record Errors
  5. Testing Formyoula In Your Salesforce Sandbox
  6. Create Records on Custom Objects With Formyoula
  7. Lookups for Salesforce Orders and Contracts
  8. Salesforce Record Select List
  9. Salesforce Child Record Auto-Fill Using Repeat Groups
  10. Adding Salesforce Lookup Fields to Your Mobile Forms
  11. Convert Existing Salesforce Lead Into an Account, Contact, Opportunity and Followup Task
  12. Salesforce Select Element for Record Assignments in the Field
  13. Salesforce Select Child Record Filter
  14. Offline Event Registration
  15. Add Users To Campaigns During Events
  16. Display Images and Signatures in Salesforce
  17. Set Record Types with Hidden fields
  18. Pre-fill Formyoula forms with Salesforce Information
  19. Autonumber new Salesforce records with a unique Formyoula entry ID
  20. New Contact Creation and Attachment to Campaign as a Campaign Member
  21. Override Select List Options With Salesforce IDs
  22. Updating existing records in Salesforce with Lookups
  23. Salesforce Record Type Switching With Workflow Rules
  24. Record Customer Site Visit on Salesforce
  25. Salesforce From With Multiple Line Items Using Repeat Groups
  26. Conditional Salesforce Record Creation
  27. Update or Create a Contact and Attach to a New Campaign as a Campaign Member
  28. Displaying Additional Salesforce Information for Lookup & Select Fields
  29. Send Email After Each Form Entry is Captured
  30. Record & Display Images in Salesforce
  31. Record & Display Signatures in Salesforce
  32. Record Voice Files in Salesforce
  33. Formyoula Integration With Salesforce Chatter
  34. Add Salesforce Users to Your Formyoula Account
  35. Formyoula Salesforce Features
  36. Create a Workflow Rule that will pre-fill information from a related object
  37. Prefill form fields from Salesforce using URL merge parameters
  38. Capture Photos, Signatures And Sketches Offline
  39. Create Multiple Related Salesforce Records Using a Single Form
  40. Create Time Based Workflow Rule To Retry Failed Formyoula Files
  41. Create, Update and Find Records on Salesforce
  42. Online and Offline Salesforce Lookup Search
  43. Filter Salesforce Records Based on Formyoula User Email
  44. Store Formyoula form entries directly in your Salesforce organization
  45. Create Salesforce Chatter Files, Attachments and Documents using Formyoula Form Files
  46. Create a Salesforce Event Record Linked To Multiple Contacts
  47. Create Custom Lookup Search Result Fields
  48. Sign In As Another Formyoula User
  49. Setup Single Sign-On (SSO) with Formyoula and Salesforce
  50. Formyoula and Salesforce User Refresh Token Management
  51. Passing secure and sensitive data in a Formyoula URL using AES encryption
  52. Add PDF Attachments to Files or Notes & Attachments on Salesforce

Feedback and Knowledge Base