decstr()

Function groupExecute on clientPlatform(s)
StringNOAll

Syntax

decstr(string[,key,unicode=ktrue])

Description

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.

Example

Calculate
 
lEncoded
 as 
encstr(
(
'Testing'
,10)

Calculate
 
lDecoded
 as 
decstr
(
lEncoded
,10)

# returns the original string 'Testing'