[PHP] Re: Mcrypt fails to run

2001-07-11 Thread Gigi

Hi,

Try upgrading to 4.0.6. I think there are known pb with 4.0.4 and mcrypt.
Regards,

--Gildas.

--
/-*-\
| Systèmes & Technologies | Tél: +33 2 96438787 |
| Informatiques du Ponant | Fax: +33 2 96438788 |
| 27, rue Auguste Brizeux | email:   [EMAIL PROTECTED] |
| 22200 Guingamp - France | web: http://www.stip.fr |
\-*-/
"Dixie Flatline" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> Greetings!
>
> I'm running Debian Potato 2.2.19 with php 4.0.4-pl1. I'd recently compiled
> an Mcrypt.so module, then added the extension line into my php.ini file.
> After reloading Apache and trying to run any php script which includes ANY
> mcrypt related function, the code immediately halts and no output is
given.
> There aren't any errors in my log files, so I don't know what could be the
> problem :(.
>
> I'm using libmcrypt 2.4.15 and MCrypt 2.5.7.
>
> Best Regards,
>
> Dixie Flatline
>
>



-- 
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] Re: Mcrypt fails to run

2001-07-12 Thread Christopher Ostmo

Gigi pressed the little lettered thingies in this order...

> Hi,
> 
> Try upgrading to 4.0.6. I think there are known pb with 4.0.4 and mcrypt.
> Regards,
> 
> --Gildas.
> 
> --
> /-*-\
> | Systèmes & Technologies | Tél: +33 2 96438787 |
> | Informatiques du Ponant | Fax: +33 2 96438788 |
> | 27, rue Auguste Brizeux | email:   [EMAIL PROTECTED] |
> | 22200 Guingamp - France | web: http://www.stip.fr |
> \-*-/
> "Dixie Flatline" <[EMAIL PROTECTED]> a écrit dans le message news:
> [EMAIL PROTECTED] > Greetings! > > I'm running
> Debian Potato 2.2.19 with php 4.0.4-pl1. I'd recently compiled > an
> Mcrypt.so module, then added the extension line into my php.ini file. >
> After reloading Apache and trying to run any php script which includes ANY
> > mcrypt related function, the code immediately halts and no output is
> given. > There aren't any errors in my log files, so I don't know what
> could be the > problem :(. > > I'm using libmcrypt 2.4.15 and MCrypt 2.5.7.
> > > Best Regards, > > Dixie Flatline > >
> 
> 

If this is the same problem that I ran into, you can fix it with a re-
compile of php.  Before compiling, go into the file:
ext/standard/crypt.c
and change line 109 to:
srand48((long)time(0) * (long)getpid() * (long)(php_combined_lcg()*(double)1.0));

You should check your server log files.  If httpd is core dumping when 
you run mycrypt commands, then this is your problem.  The fix was 
documented at bugs.php.net and was incorporated into a later version.  
When I compiled 4.0.6, I didn't have to make this change.

If you're going to recompile anyway, you may as well upgrade.

Good luck...

Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the 
dawn of Internet time (1995)

Business Applications:
http://www.AppIdeas.com/

Open Source Applications:
http://open.AppIdeas.com/

-- 
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] Re: mcrypt? - Can't find any good info

2002-03-07 Thread Michael Kimsal

Nick Richardson wrote:
> I'm getting this error:
> 
> Warning: mcrypt module initialization failed in /home/www/common.php on line
> 314
> 
> When running this code:
> 
>  function encryptPassword($password) {
>   $key = randomString();
>   $code = mcrypt_ecb(MCRYPT_BLOWFISH_128, $key, $password, MCRYPT_ENCRYPT);
> 
>   print("$code = enc w/ $key");
> }
> 
> encryptPassword("testing");
> ?>
> 
> And i can't find any documentation on what might be causing this... anyone
> out there know?
> 



Is mcrypt installed in your PHP system?

echo phpinfo();

and look for mcrypt


Michael Kimsal
http://www.phphelpdesk.com
Taking the ? out of http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: mcrypt or libmcrypt with PHP 4.2.1

2002-07-02 Thread Richard Lynch

>Does anyone have problem with libmcrypt with PHP?  With older version of PHP
>and libmcrypt, it work just fine and when I use the newer version, PHP 4.2.1
>and libmcrypt 2.5.2.  It does not work.  I check with php_info() and it
>showed the mcrypt on it and it is supported.  Does it require a different
>configuration or what?  What just happen here?

Is the mcrypt in ../../lib really 2.5.2 ?

Does phpinfo() show version 2.5.2 ?

I'm wondering if you've got multiple mcrypt installs, and, like, somehow the
headers of one are getting compiled in, while the other one is the one that
gets used...

Just how many unique (not symlinks) libmcrypt.so files turn up when you do:

locate libmcrypt

>I use the ./configure option
>
>--snip--
>
>./configure
>--with-apache=../apache_1.3.26
>--with-ibm-db2=/usr/lpp/db2_06_01
>--with-openssl=../openssl-0.9.6d
>--with-mcrypt=../../lib
>--without-mysql
>--with-config-file-path=/etc
>--enable-track-vars
>--with-curl=../../lib
>--with-xml
>
>--snip--
>
>2nd thing, what would happen when I leave out the "--with-config-file-path"
>option?  Not sure what this is use for.

Then php.ini would go in /usr/local/lib where it belongs instead of in /etc
where you think it belongs, but doesn't :-) :-) :-)

At least, I'm pretty sure that's what --config-file-path does -- Tells PHP
where php.ini is living this week. :-)

-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Javier

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

What about MD5?

Jimmy Lantz wrote:
| Hi,
| started playing with Mcrypt and just wanted to ask which encryption
| method makes the stronger encryption?
| (I can supply the necesary keylength).
| Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no fish at all :)
|
| So what do I need it for? I'm going to use it encrypting files, sizes
| varies between some 100 k's and 4-5 mb's.
| / Jim
|
| Paranoia + A system w/o users = Safe system :)


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (MingW32)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjzqsWUACgkQNcG5oyVditt1ZgCdHrRHjk/Pvb8xfJFZyXBa2/SR
rGUAn3+5uV6YdDDWGmtz4ZxEYlYJV/57
=c0Rt
-END PGP SIGNATURE-


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Ray Hunter

MD5 is not that secure compared to blowfish or twofish or the other
types of encryption available with mcrypt...

Thanks,

Ray Hunter



-Original Message-
From: Javier [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 21, 2002 2:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

What about MD5?

Jimmy Lantz wrote:
| Hi,
| started playing with Mcrypt and just wanted to ask which encryption 
| method makes the stronger encryption? (I can supply the necesary 
| keylength). Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no 
| fish at all :)
|
| So what do I need it for? I'm going to use it encrypting files, sizes 
| varies between some 100 k's and 4-5 mb's. / Jim
|
| Paranoia + A system w/o users = Safe system :)


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (MingW32)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjzqsWUACgkQNcG5oyVditt1ZgCdHrRHjk/Pvb8xfJFZyXBa2/SR
rGUAn3+5uV6YdDDWGmtz4ZxEYlYJV/57
=c0Rt
-END PGP SIGNATURE-


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Thalis A. Kalfigopoulos

On Tue, 21 May 2002, Ray Hunter wrote:

> MD5 is not that secure compared to blowfish or twofish or the other
> types of encryption available with mcrypt...
> 
> Thanks,
> 
> Ray Hunter

How does MD5 relate to encrypting the file? It's just used as a hash function.

--thalis

> 
> 
> 
> -Original Message-
> From: Javier [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, May 21, 2002 2:43 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> What about MD5?
> 
> Jimmy Lantz wrote:
> | Hi,
> | started playing with Mcrypt and just wanted to ask which encryption 
> | method makes the stronger encryption? (I can supply the necesary 
> | keylength). Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no 
> | fish at all :)
> |
> | So what do I need it for? I'm going to use it encrypting files, sizes 
> | varies between some 100 k's and 4-5 mb's. / Jim
> |
> | Paranoia + A system w/o users = Safe system :)
> 
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.6 (MingW32)
> Comment: For info see http://www.gnupg.org
> 
> iEYEARECAAYFAjzqsWUACgkQNcG5oyVditt1ZgCdHrRHjk/Pvb8xfJFZyXBa2/SR
> rGUAn3+5uV6YdDDWGmtz4ZxEYlYJV/57
> =c0Rt
> -END PGP SIGNATURE-
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Sqlcoders.com Programming Dept

>
> What about MD5?
>

MD5 is a message digest I believe,
something akin to the oldstyle CRC32.

Then again I haven't used it much (just to verify a client's credit card
number without revealing the CC number).

HTH,
Dw.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Javier

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I missed the part that talked about encrypting files. I thought it was
just for a password.

Sorry.


Thalis A. Kalfigopoulos wrote:
| On Tue, 21 May 2002, Ray Hunter wrote:
|
|
|>MD5 is not that secure compared to blowfish or twofish or the other
|>types of encryption available with mcrypt...
|>
|>Thanks,
|>
|>Ray Hunter
|
|
| How does MD5 relate to encrypting the file? It's just used as a hash
function.
|
| --thalis
|
|
|>
|>
|>-Original Message-
|>From: Javier [mailto:[EMAIL PROTECTED]]
|>Sent: Tuesday, May 21, 2002 2:43 PM
|>To: [EMAIL PROTECTED]
|>Subject: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?
|>
|>
|>-BEGIN PGP SIGNED MESSAGE-
|>Hash: SHA1
|>
|>What about MD5?
|>
|>Jimmy Lantz wrote:
|>| Hi,
|>| started playing with Mcrypt and just wanted to ask which encryption
|>| method makes the stronger encryption? (I can supply the necesary
|>| keylength). Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no
|>| fish at all :)
|>|
|>| So what do I need it for? I'm going to use it encrypting files, sizes
|>| varies between some 100 k's and 4-5 mb's. / Jim
|>|
|>| Paranoia + A system w/o users = Safe system :)
|>
|>
|>-BEGIN PGP SIGNATURE-
|>Version: GnuPG v1.0.6 (MingW32)
|>Comment: For info see http://www.gnupg.org
|>
|>iEYEARECAAYFAjzqsWUACgkQNcG5oyVditt1ZgCdHrRHjk/Pvb8xfJFZyXBa2/SR
|>rGUAn3+5uV6YdDDWGmtz4ZxEYlYJV/57
|>=c0Rt
|>-END PGP SIGNATURE-
|>
|>
|>--
|>PHP General Mailing List (http://www.php.net/)
|>To unsubscribe, visit: http://www.php.net/unsub.php
|>
|>
|>--
|>PHP General Mailing List (http://www.php.net/)
|>To unsubscribe, visit: http://www.php.net/unsub.php
|>
|
|


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (MingW32)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjzqtBcACgkQNcG5oyVdittlCACfc0q91tND2IRnQMmbQv68KZMu
WbcAoJ3F0qiB8txUzKTHmG/l0z7A7vTP
=Gjh3
-END PGP SIGNATURE-


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread 1LT John W. Holmes

I imagine he would want to un-encrypt his files at some point and MD5 is a
one-way method and not an encryption technique at all...

---John Holmes...

- Original Message -
From: "Javier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 21, 2002 4:43 PM
Subject: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> What about MD5?
>
> Jimmy Lantz wrote:
> | Hi,
> | started playing with Mcrypt and just wanted to ask which encryption
> | method makes the stronger encryption?
> | (I can supply the necesary keylength).
> | Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no fish at all :)
> |
> | So what do I need it for? I'm going to use it encrypting files, sizes
> | varies between some 100 k's and 4-5 mb's.
> | / Jim
> |
> | Paranoia + A system w/o users = Safe system :)
>
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.6 (MingW32)
> Comment: For info see http://www.gnupg.org
>
> iEYEARECAAYFAjzqsWUACgkQNcG5oyVditt1ZgCdHrRHjk/Pvb8xfJFZyXBa2/SR
> rGUAn3+5uV6YdDDWGmtz4ZxEYlYJV/57
> =c0Rt
> -END PGP SIGNATURE-
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Ray Hunter

It is a one way hash that many people use for simple
encryption...however, it should not be used for encrypting sensitive
information...some people have used it for encrypting data contained in
files...

For example do a md5 hash then encrypt the hash

Thanks,

Ray Hunter



-Original Message-
From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 21, 2002 2:47 PM
To: Ray Hunter
Cc: 'Javier'; [EMAIL PROTECTED]
Subject: RE: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?


On Tue, 21 May 2002, Ray Hunter wrote:

> MD5 is not that secure compared to blowfish or twofish or the other 
> types of encryption available with mcrypt...
> 
> Thanks,
> 
> Ray Hunter

How does MD5 relate to encrypting the file? It's just used as a hash
function.

--thalis

> 
> 
> 
> -Original Message-
> From: Javier [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 21, 2002 2:43 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> What about MD5?
> 
> Jimmy Lantz wrote:
> | Hi,
> | started playing with Mcrypt and just wanted to ask which encryption
> | method makes the stronger encryption? (I can supply the necesary 
> | keylength). Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no

> | fish at all :)
> |
> | So what do I need it for? I'm going to use it encrypting files, 
> | sizes
> | varies between some 100 k's and 4-5 mb's. / Jim
> |
> | Paranoia + A system w/o users = Safe system :)
> 
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.6 (MingW32)
> Comment: For info see http://www.gnupg.org
> 
> iEYEARECAAYFAjzqsWUACgkQNcG5oyVditt1ZgCdHrRHjk/Pvb8xfJFZyXBa2/SR
> rGUAn3+5uV6YdDDWGmtz4ZxEYlYJV/57
> =c0Rt
> -END PGP SIGNATURE-
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Ray Hunter

And yes...md5 is a message digest hashing utility for "compact digital
signatures for an arbitrarily long stream of binary data."

MD5 website...

Thanks,

Ray Hunter



-Original Message-
From: Sqlcoders.com Programming Dept [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 22, 2002 12:47 AM
To: php general
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?


>
> What about MD5?
>

MD5 is a message digest I believe,
something akin to the oldstyle CRC32.

Then again I haven't used it much (just to verify a client's credit card
number without revealing the CC number).

HTH,
Dw.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php