BLOWFISH MODULE
TCL COMMANDS:
The following tcl commands are provided by this module (and should also be provided by any other encryption module):

encrypt <key> <string>
returns: encrypted string (using blowfish), encoded into ascii using base-64 so it can be sent over the botnet

decrypt <key> <encrypted-base64-string>
returns: decrypted string (using blowfish)


C COMMANDS:
C counterparts of these functions are also avaliable:

NOTE: These functions return my_malloc()'d strings which need to be freed (they are of type memtype_misc)

char * encrypt_string (char * key ,char * text)

encrypts text with a key of key, this is reversible encryption, achieved by using:

char * decrypt_string (char * key, char * text)

this decrypts an encrypted string.

To use these functions make sure your module contains a Function * encryption_funcs; variable, and you module_start function has encryption_funcs = module_depend(ME, "encryption", 1, 1, 0);

A note to other people desiring to make encryption modules:

Examine blowfish_start/close closely, encryption modules are a special case which should not be able to be unloaded, should provide the 2 functions above plus an encrypt_pass function also (added as a hook)


(c) 1997 Robey Pointer
(c) 1998 Eggdrop Development Team