Crypt will generate a hashed string using the standard Unix DES-based algorithm.
encrypt text
test crypted hash with uncrypted text
Note: There is no decrypt algorithm, since crypt() uses a one-way algorithm.
The check is made by comparing the previously encrypted and the newly encrypted strings.