| Function group | Execute on client | Platform(s) |
| String | NO | All |
encstr(string[,key])
Encodes the string using key and returns the result.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. The encryption key can be a string of 1-255 characters in length, although it must be less than the length of the string to be encrypted. key should not contain repeats (e.g. testtesttest).
To decode the string, and return the original value, use the function decstr().
CalculatelEncodedasencstr('Testing',10)# encodes the string 'Testing' with the key 10