Doh! Nm.
_
From: Duffy, Scott E
Sent: Friday, January 13, 2006 11:47 AM
To: 'php-general@lists.php.net'
Subject: mcrypt
Trying to encrypt then decrypt text with php using mcrypt. The encrypt seems to
work but when I decrypt it with a different script
Daniel Rychlik wrote:
> Hello,
>
> I have been playing with the mycrypt function. Im having a bit of
> trouble understanding why it is important to use a vector IV.
>
> I was wandering if there is a reasonably powerful encryption algorithm.
> That uses a key only instead of getting the block si
I fixed my problem.
For archive purposes (as of PHP 4.3.0), to install mcrypt support you
only need to install libmcrypt. No need for mcrypt, or mhash ... forget
anything else you might read.
The installation problem I had was indeed a bug in PHP which I am happy
to say is fixed in the latest
;- Encrypted Data...";
$decrypted = mcrypt_ecb (MCRYPT_BLOWFISH, $key, $input, MCRYPT_DECRYPT, $iv);
echo $decrypted, "<- Decrypted data...";
-Original Message-
From: Jay Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:58 PM
To: [EMAIL PROTECTED]
Sub
You're using the same input for both encryption and decryption. Change the
decryption line to
$decrypted = mcrypt_ecb(MCRYPT_BLOWFISH, $key, $encrypted, MCRYPT_DECRYPT,
$iv);
srand() isn't doing anything here, you can get rid of it. Also, the IV does
nothing here, it is ignored in ECB mode. Try
Here,.. wait a minute. Let me pull my head out of my arse...
;o}
Many thanks Jay...
-daniel
-Original Message-
From: Jay Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 3:11 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: Mcrypt functions
You're using the
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
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 964387
Ok, looks like I'm not getting much intrest here, can anyone recomend which
newsgroup I should post this under? Is there a crypto group or anything of
the like?:
- Dan
""Dan"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I'm using MCrypt and I have two very simple functions.
Marek Kilimajer wrote:
Daniel Bowett wrote:
Hi,
I have been reading up on the mcrypt function. Is it possible to use
it with a public and private key pair or just with a single key?
Cheers.
mcrypt supports only single key
Is there anything out there that supports public/private key other than
us
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,
>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 diff
-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
>Is there a minimum field size for using mcrypt?
Boy I feel dumb now. :) My answer was in my post. Mcrypt returns a
string that is usually longer than the original string, since the return has
to be a multiple of the block size used. So a 2-character string takes
"blocksize" characters when
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
ash 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-
> Has
>
> 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: h
nt: 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 ju
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:4
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 secur
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'
Hi,
Wednesday, December 4, 2002, 3:39:10 PM, you wrote:
>>Is there a minimum field size for using mcrypt?
SY> Boy I feel dumb now. :) My answer was in my post. Mcrypt returns a
SY> string that is usually longer than the original string, since the return has
SY> to be a multiple of the bloc
Daniel Bowett wrote:
> Marek Kilimajer wrote:
>> Daniel Bowett wrote:
>>
>>> Hi,
>>>
>>> I have been reading up on the mcrypt function. Is it possible to use
>>> it with a public and private key pair or just with a single key?
>>>
>>> Cheers.
>>>
>>
>> mcrypt supports only single key
>>
>
> Is ther
Richard Lynch wrote:
Daniel Bowett wrote:
Marek Kilimajer wrote:
Daniel Bowett wrote:
Hi,
I have been reading up on the mcrypt function. Is it possible to use
it with a public and private key pair or just with a single key?
Cheers.
mcrypt supports only single key
Is there anything out there that s
24 matches
Mail list logo