Global Helpers
obfuscateParam()
Signature
Section titled “Signature”obfuscateParam() — returns string
Available in: controller, model, test, migrator, migration, tabledefinition
Category: Miscellaneous Functions
Description
Section titled “Description”Obfuscates a value. Typically used for hiding primary key values when passed along in the URL.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
param | any | yes | — | The value to obfuscate. |
Examples
Section titled “Examples”// Obfuscate the primary key value `99`
newValue = obfuscateParam(99);