This function is used to encrypt a string.
source − This is the source string which needs to be encrypted.
salt − This is the characters which need to be used for the encryption process.
This function returns the encrypted string.
/* Main program */ options arexx_bifs say crypt('abc','gh')
When we run the above program we will get the following result.
Note that if the source string is the same as the output string, then it means that the operating system does not support encryption.