Rexx - Extended Functions crypt


Advertisements

This function is used to encrypt a string.

Syntax

crypt(source,salt) 

Parameters

  • 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.

Return Value

This function returns the encrypted string.

Example

/* Main program */ 
options arexx_bifs 
say crypt('abc','gh') 

When we run the above program we will get the following result.

Output

abc

Note that if the source string is the same as the output string, then it means that the operating system does not support encryption.

rexx_extended_functions.htm
Advertisements