Calculate the hash of a String, using DES or alternatives on the system.
Syntax
Parameters
subject
- The String to calculate a hash for.salt
- An optional String to salt the encryption with. If no salt is specified, one is randomly generated.
Result
Returns the encrypted hash of subject
. The hash returned depends upon what encryption algorithms are available on the system.