crypt
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | crypt [2007/03/02 02:32] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # $EPIC: crypt.txt,v 1.2 2007/03/02 02:32:04 jnelson Exp $ | ||
| + | ======Synopsis: | ||
| + | $crypt(< | ||
| + | |||
| + | ======Technical: | ||
| + | The < | ||
| + | different from most functions. | ||
| + | |||
| + | Given an arbitrary string and a " | ||
| + | returns the input string in a one-way encrypted form. This function | ||
| + | depends on the availability of a local crypt(3) library function. | ||
| + | the first 8 characters of the input string are significant. | ||
| + | is a two-character string, and may be composed of any combination of | ||
| + | any alphanumeric character, a period (.), or a forward-slash (/). | ||
| + | Additional characters may be available, depending on the crypt(3) in | ||
| + | use at your site. | ||
| + | |||
| + | ======Practical: | ||
| + | This function is primarily used for encrypting passwords, Unix style. | ||
| + | It is helpful if the input salt is itself sufficiently random. | ||
| + | preserved in both the salt and input string. | ||
| + | |||
| + | ======Returns: | ||
| + | encrypted input text, or nothing if error | ||
| + | |||
| + | ======Example: | ||
| + | < | ||
| + | $crypt(foobar ab) returns " | ||
| + | </ | ||
| + | |||
| + | ======Other Notes: | ||
| + | As mentioned above, this function relies completely on the availability | ||
| + | of a local crypt(3) library function. | ||
| + | on some systems. | ||
| + | information. | ||
| + | |||
crypt.txt · Last modified: 2007/03/02 02:32 by 127.0.0.1
