Re: New Module

From: Date: Tue, 05 Mar 2002 18:07:54 +0000
Subject: Re: New Module
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-80760@lists.php.net to get a copy of this message
> 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.

« previous php.dev (#80760) next »