| 1 |
This module implements a chaining block cipher using a one |
| 2 |
way hash. This method of encryption is the same that is |
| 3 |
used by radius (RFC2138) and is also described in Applied |
| 4 |
Cryptography. |
| 5 |
|
| 6 |
Two interfaces are provided in the module. The first is |
| 7 |
straight block encryption/decryption the second does base64 |
| 8 |
mime encoding/decoding of the encrypted/decrypted blocks. |
| 9 |
|
| 10 |
The idea is the the two sides have a shared secret that |
| 11 |
supplies one of the keys and a randomly generated block of |
| 12 |
bytes provides the second key. The random key is passed in |
| 13 |
cleartext between the two sides. |
| 14 |
|
| 15 |
An example client and server are packaged as modules with |
| 16 |
this module. They are used in the tests. |