crypt

Calculate the hash of a String, using DES or alternatives on the system.


Syntax


Parameters

  • String subject - The String to calculate a hash for.
  • String salt - An optional String to salt the encryption with. If no salt is specified, one is randomly generated.


Result

  • String - The encrypted hash.

Returns the encrypted hash of subject. The hash returned depends upon what encryption algorithms are available on the system.