You are here: Re: mcrypt_encrypt giving different results for same input? « PHP Programming Language « IT news, forums, messages
Re: mcrypt_encrypt giving different results for same input?

Posted by Jerry Stuckle on 10/02/07 10:58

Mtr wrote:
> On Mon, 01 Oct 2007 23:20:14 -0400, Jerry Stuckle <jstucklex@attglobal.net>
> wrote:
>
>> laredotornado@zipmail.com wrote:
>
>>> on one call I get the encrypted string, "ë;jéøÕG·" and on the other
>>> call, I get "ø34Avýä". What gives?
>>>
>>> Thanks, - Dave
>>>
>
>> I hate to state the obvious, but obviously there is something different
>> between the two. mcrypt_encrypt gives the same output for the same input.
>>
>> Look for differences in capitalization, '1' (one) instead of 'l' (lower
>> case ell) or 'I' (upper case eye), for instance. It's very easy to do.
>
> well, not necesarily. Maybe it's a chain cypher - and he's not
> re-initializing.
>
> Although his code sample does say ECB, I don't know what the parameters
> mean for this extension function anyway.
>

(top posting fixed)

Your posting makes no sense whatsoever. Did you actually try the code?

If it were a chain cipher, you would have to follow the same chain to
decrypt. And a quick test of the code would have shown you this is not
a chain cipher.

Also, please don't top post. Thanks.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация