source: project/wiki/eggref/4/blowfish @ 30614

Last change on this file since 30614 was 30614, checked in by svnwiki, 7 years ago

Anonymous wiki edit for IP [178.76.195.126]:

File size: 1009 bytes
Line 
1[[tags: egg]]
2
3== blowfish
4
5Blowfish cipher (based on Paul Kocher implementation).
6
7== Documentation
8
9<procedure>(make-blowfish-encryptor key)</procedure>
10
11<procedure>(make-blowfish-decryptor key)</procedure>
12
13{{key}} blob minimal length 4, maximum 56 bytes.
14
15Returns one argument procedure, accept input blob and produce encrypted/decrypted output blob of same size.
16Input data blob should be aligned on 64 bit boundary.
17
18== Usage
19
20<enscript language=scheme>
21(require-extension blowfish)
22</enscript>
23
24== Examples
25
26<enscript language=scheme>
27(require-extension blowfish)
28
29(define enc (make-blowfish-encryptor (string->blob "TESTKEY")))
30(enc '#${0100000002000000}) ; => '#${d23f33dfb41ba730}
31
32(define dec (make-blowfish-decryptor (string->blob "TESTKEY")))
33(dec '#${d23f33dfb41ba730}) ; => '#${0100000002000000}
34
35</enscript>
36
37== Notes
38
39== Author
40
41[[rivo]]
42
43== Version history
44
45; 1.1 : encryption/decryption fix on 64 bit systems
46; 1.0 : major release (cosmetic fixes)
47; 0.1 : initial release
48
49== License LGPL
Note: See TracBrowser for help on using the repository browser.