CCEncryptString(String, Key)
Encrypts a string using a two-way (decryptable) RC4-like encryption algorithm and the provided encryption key.
CodeCharge Studio uses this function internally on login pages to encrypt authentication information that will be stored in cookies when the Remember Me feature is enabled. The Preserve Password action also uses this function to double-encrypt the password stored in the Shadow Control. In both cases the default encryption key is obtained from CCS Project Settings -> Security -> Advanced -> 'Remember Me' feature -> Encryption Key.
Name | Type | Description | Required |
---|---|---|---|
String | string | A string that contains the data to encrypt. | Yes |
Key | string | A 128-bit key to be used to encrypt the data. This key can later be used with the CCDecryptString function to decrypt the string. |
Yes |