> loadable module? Something like: > > bool crypto_register_algorithm(string name, function &crypt, function > &decrypt)
Actually after thinking about it a bit more, why not: bool crypto_register_algorithm(string name, function &crypt_decrypt) > > Then crypt and decrypt could have function headers similar to (perhaps this is > oversimplified): > > string crypt(string data, mixed key) > With crypt_decrypt defined like: string crypt_decrypt(string data, int type, mixed key) Where data is the data to (de)crypt, type is some value indicating whether to crypt or decrypt, and key is some user defined key used during the encryption process. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php