Function group | Execute on client | Platform(s) |
---|---|---|
String | NO | All |
encstr(string[,key])
Encodes the string using key and returns the result. key can be a string of 1-255 characters in length. If omitted, Omnis uses the default key. encstr() marks the string to indicate that it was encoded using Unicode Omnis.
The return value of encstr() is a string that is difficult to decode without knowing the key. To decode the string, and return the original value, use the function decstr().
Calculate lEncoded as encstr('Testing',10)
# encodes the string 'Testing' with the key 10