Well now I have the Encryption problem figured out but when I try to
decrypt the information, I'm getting this error:
Warning: mcrypt module initialization failed in test.php on line 11
Here's Line 11:
$text = mcrypt_decrypt (MCRYPT_TripleDES, $key, $lockdata,
MCRPYT_MODE_ECB, $iv);
again
I was mixing up with the attack against twofish with reduced rounds (I think
this is true of blowfish with reduced rounds as well )
-Original Message-
From: Evan Nemerson [mailto:[EMAIL PROTECTED]]
Sent: 22 May 2002 22:57
To: John Horton; [EMAIL PROTECTED]
Subject: Re: [PHP] Mcrypt
:[EMAIL PROTECTED]]
Sent: 22 May 2002 10:06
To: Jimmy Lantz
Cc: [EMAIL PROTECTED]
Subject: Re: RE: [PHP] Mcrypt: Blowfish or Twofish or no fish?
part 3
There is no use of hashing in file-encryption except to use it
as
a check - to see if the decrypted file matches the original
file
Thanx for the suggestions!
Someone mentioned that I could use MD5 and then encrypt the hash,
how would I ever decrypt that? Is'nt MD5 a 1-way thing only?
Another question?
Should I go for bigger keylength or bigger blocksize or both? What makes
for the best encryption?
/ Jim
(and before
Yes Jimmy, you are correct. MD5 is a one-way hash. Its used for
getting a unique fingerprint of some data (like files / passwords
etc) so that it can be compared with another MD5 hash.
Thats the point of a hashing algorithm like MD5 and SHA1 - you
should never need to decrypt the data.
:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 12:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Mcrypt: Blowfish or Twofish or no fish? Part 2
Thanx for the suggestions!
Someone mentioned that I could use MD5 and then encrypt the hash, how
would I ever decrypt that? Is'nt MD5 a 1-way thing only
to use SHA-1 instead of MD5, as there appears to be some concern with MD5
over it's compression function.
HTH
JH
-Original Message-
From: Jimmy Lantz [mailto:[EMAIL PROTECTED]]
Sent: 21 May 2002 17:28
To: [EMAIL PROTECTED]
Subject: [PHP] Mcrypt: Blowfish or Twofish or no fish?
Hi,
started
I believe that twofish has been successfully broken, so use blowfish
instead. Typically, for encrypting files you will use an algorithm like
blowfish in cbc mode (as opposed to ebc mode) but I don't know if Mcrypt
supports this. Also, when creating the hash of the file, it is probably best
to
There is no use of hashing in file-encryption except to use it as
a check - to see if the decrypted file matches the original file.
To do this check, you can use either MD5 or SHA1. The choice is
urs.
If ur looking for a good encryption algorithm, you might want to
consider AES (Rijndael).
with the
algorithm (or the data was corrupted somehow).
Hashes are typically used as sanity checks in this way.
JH
-Original Message-
From: Jimmy Lantz [mailto:[EMAIL PROTECTED]]
Sent: 22 May 2002 09:31
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 3
I
Panicker [mailto:[EMAIL PROTECTED]]
Sent: 22 May 2002 10:06
To: Jimmy Lantz
Cc: [EMAIL PROTECTED]
Subject: Re: RE: [PHP] Mcrypt: Blowfish or Twofish or no fish?
part 3
There is no use of hashing in file-encryption except to use it
as
a check - to see if the decrypted file matches the original
To: John Horton
Cc: [EMAIL PROTECTED]; Jimmy Lantz
Subject: Re: RE: RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part
3
And why not use AES, which is an industry standard and having
being proven as the best encryption algorithm in recent times?
http://csrc.nist.gov/encryption/aes/aesfact.html
files in cbc?
JH
-Original Message-
From: Vinod Panicker [mailto:[EMAIL PROTECTED]]
Sent: 22 May 2002 10:25
To: John Horton
Cc: [EMAIL PROTECTED]; Jimmy Lantz
Subject: Re: RE: RE: [PHP] Mcrypt: Blowfish or Twofish or no
fish? part
3
And why not use AES, which is an industry standard
I always hate mentioning this 'cause I feel like an attention whore or
something, but nevertheless, I can't get the thing tested thouroughly
without a bit of whoring...
I've been working on a crypto extension for PHP for a while now, and since
you guys seem into the crypto thing, you might
On Wed, 22 May 2002, Jimmy Lantz wrote:
Thanx for the suggestions!
Someone mentioned that I could use MD5 and then encrypt the hash,
how would I ever decrypt that? Is'nt MD5 a 1-way thing only?
Another question?
Should I go for bigger keylength or bigger blocksize or both? What makes
To: Jimmy Lantz
Cc: [EMAIL PROTECTED]
Subject: Re: RE: [PHP] Mcrypt: Blowfish or Twofish or no fish?
part 3
There is no use of hashing in file-encryption except to use it
as
a check - to see if the decrypted file matches the original
file.
To do this check, you can use either MD5 or SHA1
compression function.
HTH
JH
-Original Message-
From: Jimmy Lantz [mailto:[EMAIL PROTECTED]]
Sent: 21 May 2002 17:28
To: [EMAIL PROTECTED]
Subject: [PHP] Mcrypt: Blowfish or Twofish or no fish?
Hi,
started playing with Mcrypt and just wanted to ask which encryption method
makes
Ah it would be a good idea to use the hash as a checksum- especially if you
encrypt in ECB
On Wednesday 22 May 2002 01:30 am, Jimmy Lantz wrote:
I believe that twofish has been successfully broken, so use blowfish
instead. Typically, for encrypting files you will use an algorithm like
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
be a warning on the Mcrypt page).
HTH,
Dw
Sqlcoders.com Dynamic data driven web solutions
- Original Message -
From: Jimmy Lantz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: May 21 2002 09:27 AM
Subject: [PHP] Mcrypt: Blowfish or Twofish or no fish?
Hi,
started playing with Mcrypt
On Tue, 21 May 2002, 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 have uncommented the .dll extension in my php.ini however the
functions are still unavailable? What am I doing wrong?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
has ne1 got php_mcrypt.dll or the source code for it? the website for it
seems to be unavailable.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PROTECTED]
Subject: [PHP] mcrypt...
I have uncommented the .dll extension in my php.ini however the
functions are still unavailable? What am I doing wrong?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List
I have PHP4.1.2 with libmcrypt4.2.22. I had a script that worked just fine yesterday
testing an mcrypt scenario, and (of course) today it just kills the httpd serving the
page and I get this in error_log:
[Sun Mar 24 08:31:36 2002] [notice] child pid 1049 exit signal Segmentation fault (11)
I'm getting this error:
Warning: mcrypt module initialization failed in /home/www/common.php on line
314
When running this code:
?php
function encryptPassword($password) {
$key = randomString();
$code = mcrypt_ecb(MCRYPT_BLOWFISH_128, $key, $password, MCRYPT_ENCRYPT);
print($code = enc
Hi!
I'm trying to encrypt some password using TripleDES-encryption here...
I've followed the documentation for the mcrypt-libraries, but I get a
warning (all though it -does- encrypt the text) every time I try to
encrypt something;
Warning: attempt to use an empty IV, which is NOT recommend
My
Dear PHP Users,
I am trying to take like an e-mail message and then encrypt it
into a database and then be able to decrypt it and get the
same result back. I have been unsuccessful in doing so. I have
libmcrypt 2.5.6 installed, I also installed mhash 0.8.13 and
have PHP compiled to support both
Dear PHP Users,
I am trying to take like an e-mail message and then encrypt it
into a database and then be able to decrypt it and get the
same result back. I have been unsuccessful in doing so. I have
libmcrypt 2.5.6 installed, I also installed mhash 0.8.13 and
have PHP compiled to support both
Hi, a couple of weeks ago I posted a problem with
mcrypt under php with at least 4.0.5,4.0.6 and
4.0.7-dev.
The server works ok until you use a mcrypt function
(it segfaults).
The bug has been reported in bugs.php.net and
assigned. Unfortunately so far no solution or news
regarding this.
I use mcrypt to encrypt passwords, I saw somewhere international users had
trouble with the high ascii. is the any functions that can convert the high
ascii to hex or something ?
Thanks
Randy
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
I use mcrypt to encrypt passwords, I saw somewhere international users
had
trouble with the high ascii. is the any functions that can convert the
high
ascii to hex or something ?
Thanks
Randy
Have a squiz here:
http://www.php.net/manual/en/ref.strings.php
--
PHP General Mailing
I looked at those and still don't know which one i should use any ideas??
-Original Message-
From: Jason Brooke [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 6:49 AM
To: Power Programmer
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] mcrypt
I use mcrypt to encrypt passwords
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
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
Hi Folks!
I am working on a project where I need to encrypt some data that will be
decrypted later by a visual basic application and also receive encrypted
data from that application and decrypt it on the webserver. To exchange the
data, I did some xml and everything went fine, but I can't
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
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
Hi Folks!
I am working on a project where I need to encrypt some data that will be
decrypted later by a visual basic application and also receive encrypted
data from that application and decrypt it on the webserver. To exchange the
data, I did some xml and everything went fine, but I can't
Hi Everyone,
When I try to execute the code below, I don't get any errors, but the data
is never decrypted. I have tried tons of different people's code, but to no
avail. Any help would be appreciated. Here is my code:
$data= mcrypt_ecb(MCRYPT_TripleDES, $key, $data, ENCRYPT);
echo data: $data;
Can anyone explain how to install the Win32 version of mcrypt? I've
downloaded the Win32 zip file and there are no docs on how to install.
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
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
I have compiled PHP with mcrypt and it works fine if I run a script from
the command line but through a browswer such as IE I get the following
error:
Fatal error: Call to undefined function: mcrypt_module_open() in
/home/wheit/html/test.php on line 6
What do I need to do to be able to
Programmer [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 12:29 PM
To: [EMAIL PROTECTED]; Keyser Soze; [EMAIL PROTECTED]
Subject: [PHP] mcrypt
I have compiled PHP with mcrypt and it works fine if I run a script
from
the command line but through a browswer such as IE I get the following
What causes this error when apache is starting?
# ./apachectl startssl
Syntax error on line 238 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
libmcrypt.so.4: cannot open shared object file: No such file or directory
./apachectl startssl:
: Sunday, July 08, 2001 5:16 PM
Subject: [PHP] Mcrypt Part2
What causes this error when apache is starting?
# ./apachectl startssl
Syntax error on line 238 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
libmcrypt.so.4: cannot open shared
Message-
From: Ben Bleything [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 3:36 PM
To: 'Power Programmer'; [EMAIL PROTECTED]; 'Keyser Soze';
[EMAIL PROTECTED]
Subject: RE: [PHP] mcrypt
Have you made sure that the php on the command line and the php that
apache is using are indeed
Here's the error:
Warning: mcrypt module initialization failed in
/home2/golfballs.net/www/includes/crypt_lib.php on line 35
Here's line 35:
$result = mcrypt_cbc($cipher, $key, $cc_num, $mode);
Becuase of the above warning, credit card numbers can't be viewed on the
'recieved orders' page.
Hi I am developing an application which will encrypt
(using mcrypt library) some data.
Everyting is ok except the fact that I can no longer
have links (GET) passing the values.
For ex.
I used to have
a href=script.php?plaintext=foobar
now I need to pass that foobar value encrypted.
a
From: Maxim Maletsky [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 5:00 AM
I think PEAR has it.
have you tried to look at it?
Found it, thanks!
It contains HCE_MD5, but AFAICT it does not utilize the other encryption
modes found in mcrypt. But it doesn't matter - I think this is fine for
Did I hear anyone say SSL?
Curtis
On Thu, 26 Apr 2001, Alex Piaz wrote:
Hi All!
It's my first post:-)
I am working on a php web application that has to interchange encrypted
data to a VB windows standalone exe. Does anybody know the best way to do it??
I am making some tests with
Hi All!
It's my first post:-)
I am working on a php web application that has to interchange encrypted
data to a VB windows standalone exe. Does anybody know the best way to do it??
I am making some tests with mcrypt_module using the BLOWFISH algorithm. On
the web enviromment I can encrypt
5:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP] mcrypt module for Win32
Where can I find a win32 version of the mcrypt module?
- Carsten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
Does anyone know how to install the mcrypt libraries for PHP in windows?
I'm running: Apache 1.3.12
PHP 4.0.2
Windows 98
I've downloaded libmcrypt-2.4.5b-win32.zip
(I think that this contains everything I need.)
I just need to
First, can anyone point me to a good "mcrypt" primer or tutorial?
Second, how can I determine what type and length I should make a
database field that will hold encrypted data? Is there some table
somewhere which tells how long a resulting encrypted field will be
based on the encryption type
Hi,
Does anyone know where I might get the mcrypt dll for windows nt or win 98??
Thanks,
Kev
Kevin Connolly wrote:
Does anyone know where I might get the mcrypt dll for windows nt or
win 98??
I dunno, but you could try http://www.php4win.de
regards
Wagner
--
Three may keep a secret, if two of them are dead.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
The latest version should be at:
ftp://argeas.cs-net.gr/pub/unix/mcrypt/win32/
--
phill
Kevin Connolly wrote:
Does anyone know where I might get the mcrypt dll for windows nt or
win 98??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
101 - 158 of 158 matches
Mail list logo