Common Lisp Package: CRYPT

Common-Lisp implementation of unix crypt function

README:

FUNCTION

Public

CRYPT (PWD &OPTIONAL (SALT AA))

Password encrypion function. PWD is the user's typed password. SALT is a two character string chosen from the set [a-zA-Z0-9./] used to perturb the algorithm in one of 4096 different ways. Returns the 13 character encrypted password.

RANDOM-SALT (&OPTIONAL (LENGTH 2))

Generate random salt string of given length (default 2)

Private

Undocumented

4-OCTETS-TO-WORD (BYTES &OPTIONAL (OFFSET 0))

BITS (VALUE)

BODY (SCHEDULE E0 E1)

D-ENCRYPT (L R IDX E0 E1 S)

DES-SET-KEY (KEY)

HPERM-OP (A N M)

LSHIFT (VALUE N)

PERM-OP (A B N M)

RSHIFT (VALUE N)

WORD-TO-4-OCTETS (VALUE BYTES &OPTIONAL (OFFSET 0))

VARIABLE

Private

Undocumented

+CON-SALT+

+COV-2CHAR+

+ITERATIONS+

+SHIFTS2+

+SKB+

+SPTRANS+