You are here: Re: mcrypt_enc_get_iv_size not working « PHP Programming Language « IT news, forums, messages
Re: mcrypt_enc_get_iv_size not working

Posted by Jon Slaughter on 05/31/07 22:34

"C." <colin.mckinnon@gmail.com> wrote in message
news:1180647949.867403.167430@o5g2000hsb.googlegroups.com...
> On 31 May, 19:27, "Jon Slaughter" <Jon_Slaugh...@Hotmail.com> wrote:
>> Of course I meant mcrypt_create_iv...
>
> Code looks OK.
>
> Are you getting a sensible value for mcrypt_enc_get_iv_size($this-
>>CryptRes) ?
>

yeah, its a bug in mcrypt and I randomized the string it returned myself.

> Have you tried using the devices as an entropy source?
>
> IIRC mcrypt uses binary strings, in some cases it even assigns C
> strings to PHP strings; it might be a better idea to encode the output
> before writing to the console/browser:
>
> echo base64_encode($iv) ."<br/>\n";
>

Well, it was just for a test.. in reality there is no writing to the
console. Was just trying to figure why my strings were not being randomized.

Thanks,
Jon

 

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

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