The crypt Reference Manual

Next: , Previous: , Up: (dir)   [Contents][Index]

The crypt Reference Manual

This is the crypt Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 03:34:16 2022 GMT+0.

Table of Contents


1 Introduction

This implementation of unix crypt function has been written by by John
A.R. Williams .

The sources can be downloaded from http://www.jarw.org.uk/lisp/jarw.html or
via git: git clone http://www.jarw.org.uk/lisp/cl-jarw.git

The packaging has been made by Sébastien Gross .


2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 crypt

Common-Lisp implementation of unix crypt function

Author

John A.R. Williams <J.A.R.Williams@jarw.org.uk>

License

GPL

Source

crypt.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp   [Contents][Index]

3.1.1 crypt/crypt.asd

Source

crypt.asd.

Parent Component

crypt (system).

ASDF Systems

crypt.


Next: , Previous: , Up: Lisp   [Contents][Index]

3.1.2 crypt/package.lisp

Source

crypt.asd.

Parent Component

crypt (system).

Packages

crypt.


Previous: , Up: Lisp   [Contents][Index]

3.1.3 crypt/crypt.lisp

Dependency

package.lisp (file).

Source

crypt.asd.

Parent Component

crypt (system).

Public Interface
Internals

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 crypt

Common-Lisp implementation of unix crypt function

Source

package.lisp.

Use List

common-lisp.

Public Interface
Internals

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Public Interface


5.1.1 Ordinary functions

Function: crypt (pwd &optional salt)

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.

Package

crypt.

Source

crypt.lisp.

Function: random-salt (&optional length)

Generate random salt string of given length (default 2)

Package

crypt.

Source

crypt.lisp.


5.2 Internals


Next: , Previous: , Up: Internals   [Contents][Index]

5.2.1 Special variables

Special Variable: +con-salt+
Package

crypt.

Source

crypt.lisp.

Special Variable: +cov-2char+
Package

crypt.

Source

crypt.lisp.

Special Variable: +iterations+
Package

crypt.

Source

crypt.lisp.

Special Variable: +shifts2+
Package

crypt.

Source

crypt.lisp.

Special Variable: +skb+
Package

crypt.

Source

crypt.lisp.

Special Variable: +sptrans+
Package

crypt.

Source

crypt.lisp.


Previous: , Up: Internals   [Contents][Index]

5.2.2 Ordinary functions

Function: 4-octets-to-word (bytes &optional offset)
Package

crypt.

Source

crypt.lisp.

Function: bits (value)
Package

crypt.

Source

crypt.lisp.

Function: body (schedule e0 e1)
Package

crypt.

Source

crypt.lisp.

Function: d-encrypt (l r idx e0 e1 s)
Package

crypt.

Source

crypt.lisp.

Function: des-set-key (key)
Package

crypt.

Source

crypt.lisp.

Function: hperm-op (a n m)
Package

crypt.

Source

crypt.lisp.

Function: lshift (value n)
Package

crypt.

Source

crypt.lisp.

Function: perm-op (a b n m)
Package

crypt.

Source

crypt.lisp.

Function: rshift (value n)
Package

crypt.

Source

crypt.lisp.

Function: word-to-4-octets (value bytes &optional offset)
Package

crypt.

Source

crypt.lisp.


Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts