I'd start by checking the libmcrypt installation.
If you're building from source, prior to your installation
check that [mcrypt-src-dir]/src/cipher_test runs without
error. If that succedes, install libmcrypt (and mcrypt) and
then attempt to test with the command line. Start by listing
ciphers and modes. Then attempt to encrypt and decrypt something.
Once you've verified that the underlying code is working, then
attempt to list the ciphers and modes with PHP functions. In general
the mcrypt examples given by the php manual at php.net/manual were
enough to get me started.
Note, I've experienced problems on Solaris and Linux with the modules
not being found (cipher .so's). Sometimes it's as easy as setting
directories in php.ini, sometimes I've had to get into the libmcrypt code.
On Tue, Aug 21, 2001 at 09:16:22AM -0500, Dominic Schanen wrote:
> I'm trying to do mcrypt encryption but I continue to get the following
> Warning: mcrypt module initialization failed
> and this is the line of code that I get the error from:
> $string = mcrypt_cbc("MCRYPT_DES", $key, $test, "encrypt");
> I've also tried several different version of using the function
> mcrypt_encrypt as well but nothing seems to work. In my phpinfo file, this
> is what I have for the mcrypt module:
> Version: 2.4.x
> Supported Ciphers:
> cast-128 cast-256 enigma xtea arcfour panama safer-sk64 saferplus des
> tripledes blowfish gost rc2 safer-sk128 threeway serpent wake loki97
> rijndael-128 rijndael-192 rijndael-256 twofish blowfish-compat
> Supported modes:
> stream cbc cfb ecb ofb nofb
> Does someone know if I am coding something wrong or if there is a problem
> with the installation of php (v 4.0.6) on the server that I am on? Thanks
> for the help.
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
Director of Technology
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]