The following functions are provided as built-in functions in PeopleCode for encryption/decryption:
Encrypt/Decrypt
The syntax for these functions (as provided in PeopleBooks) is:
Encrypt (KeyString, ClearText) returns CipherText
Decrypt (KeyString, CipherText) returns ClearText
The Encrypt and Decrypt functions rely on a key string which is used as part of the encryption. Note that the key string can be blank so you can simply issue the commands Encrypt(ClearText) and Decrypt(CipherText).
&strCipherText = encrypt("", rtrim(ltrim(&strClearText)));
No comments:
Post a Comment