Crypt is both

Cryptographic Hash Function #

Cryptographic Hash Function is used both to generate a new hash for storage and also to hash a proffered password with a recorded salt for comparison.

Modern Unix implementations of the Crypt library routine support a variety of different Ciphers.

The particular Cryptographic Hash Function used can be identified by a unique code prefix in the resulting hashtext, following a pseudo-standard called Modular Crypt Format.

Need to create A Crypt Password#

We often need to do testing and found that we could do this as:

# perl -le 'print crypt("password","salt")'

More Information#

There might be more information for this subject on one of the following: