| Function group | Execute on client | Platform(s) |
| String | NO | All |
decstr(string[,key,unicode=ktrue])
Decodes string (encoded with encstr()) using key and returns result.If omitted,uses the default key.If unicode false and string not marked as Unicode,string must have been encoded by non-Unicode Omnis
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).
Note that decstr(encstr(string,key),key) = string.
CalculatelEncodedasencstr(('Testing',10)
CalculatelDecodedasdecstr(lEncoded,10)# returns the original string 'Testing'