| ||Copyright © 2011 , Kurt NÝrmark |
Reference Manual of the Crypt Library
Department of Computer Science, Aalborg University, Denmark.
LAML Source file: lib/crypt.scm
A password crypting library. This is a primitive encrypting based on a fairly elaborate transformation of string to another string. The sheer complexity of the program below adds to the value of the encryption. The main function is: crypt-string. This library requires the general library.
1 The main crypting function.
| The main crypting function is crypt-string below.|
|Form ||(crypt-string input-password)|
|Description ||A poor mans password crypting function. The one and only external function of this library. This cryptation will immediately be broken by experts! However, it is better than nothing in practical situations. |
2 Helping functions.
| This section contains a few helping functions which may be of some use in other situations.|
|Form ||(extend-string str extension)|
|Description ||Extend string st by extension by means of string merging. |
|Form ||(permute-string str permutation-vector)|
|Description ||Return a permuation of the string carried out determinitically by means of permutation-vector The second parameter, permutation-vector, is a vector of positive integers |
|Form ||(calculate-exchange-position n m permutation-vector)|
|Description ||Return a number between n and m (actually m - 1), calculated by means of permutation-vector n < m |
|Form ||(shift-up-and-down str shift-vector)|
|Description ||Shift the characters in the string str up and down by means of a shift-vector. A shift-vector is a vector of integers. |