1# $EPIC: crypt,v 1.2 2001/06/22 20:01:37 jnelson Exp $ 2Synopsis: 3 $crypt(<string> <salt>) 4 5Technical: 6 Given an arbitrary string and a "salt" (a randomizer), this function 7 returns the input string in a one-way encrypted form. This function 8 depends on the availability of a local crypt(3) library function. Only 9 the first 8 characters of the input string are significant. The salt 10 is a two-character string, and may be composed of any combination of 11 any alphanumeric character, a period (.), or a forward-slash (/). 12 Additional characters may be available, depending on the crypt(3) in 13 use at your site. 14 15Practical: 16 This function is primarily used for encrypting passwords, Unix style. 17 It is helpful if the input salt is itself sufficiently random. Case is 18 preserved in both the salt and input string. 19 20Returns: 21 encrypted input text, or nothing if error 22 23Example: 24 $crypt(foobar ab) returns "foobar" encrypted with salt "ab" 25 26Other Notes: 27 As mentioned above, this function relies completely on the availability 28 of a local crypt(3) library function. This function is not available 29 on some systems. Refer to your system's manual pages for more 30 information. 31 32