|
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]
|