[PHP] mcrypt trouble, still

2001-08-23 Thread Dominic Schanen

Well, in response to my previous post and its reply, the server
administrator tried reinstalling mcrypt and did the testing during the
install and it all seemed to work for him there. However, I still get the
error:

Warning: mcrypt module initialization failed

So, now my question is this. In the phpinfo file, all the ciphers and modes
are listed fine and it shows that mcrypt is enabled. However, for the
directives mcrypt.algorithms_dir and mcrypt.modes_dir, they have no local or
master value. Is this something that needs to be set in phpinfo to point at
the mcrypt installation? Thanks.

--
Dominic



-- 
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]




Re: [PHP] mcrypt trouble, still

2001-08-23 Thread Andrew Libby

Dominic, 
These locations can be set by in php.ini or passed as parameters to
the mcrypt functions they pretain to (notably those used to initialize).

Andy

On Thu, Aug 23, 2001 at 07:24:42AM -0500, Dominic Schanen wrote:
 Well, in response to my previous post and its reply, the server
 administrator tried reinstalling mcrypt and did the testing during the
 install and it all seemed to work for him there. However, I still get the
 error:
 
 Warning: mcrypt module initialization failed
 
 So, now my question is this. In the phpinfo file, all the ciphers and modes
 are listed fine and it shows that mcrypt is enabled. However, for the
 directives mcrypt.algorithms_dir and mcrypt.modes_dir, they have no local or
 master value. Is this something that needs to be set in phpinfo to point at
 the mcrypt installation? Thanks.
 
 --
 Dominic
 
 
 
 -- 
 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]
 

-- 
--
Andrew Libby
Director of Technology
CommNav, Inc
[EMAIL PROTECTED]


-- 
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]




[PHP] mcrypt trouble

2001-08-21 Thread Dominic Schanen

Hello,

I'm trying to do mcrypt encryption but I continue to get the following
error:

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.

--
Dominic



-- 
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]




Re: [PHP] mcrypt trouble

2001-08-21 Thread Andrew Libby

Dominic,
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.

Good luck.

Andy

On Tue, Aug 21, 2001 at 09:16:22AM -0500, Dominic Schanen wrote:
 Hello,
 
 I'm trying to do mcrypt encryption but I continue to get the following
 error:
 
 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.
 
 --
 Dominic
 
 
 
 -- 
 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]
 

-- 
--
Andrew Libby
Director of Technology
CommNav, Inc
[EMAIL PROTECTED]


-- 
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]