php/mcrpyt Question concerning salt and vector

Posted in the Cryptography Forum



#1 Nov 15, 2012
When I use the mcrypt classes in php I need a Vector(IV) for the encyption. In an example I found in the internet this vector is created randomly:

$handler = mcrypt_module_open('blowfish', '','cbc','');
$iv = mcrypt_create_iv(mcrypt_enc_ge t_iv_size($handler), MCRYPT_RAND);

My question was, does this IV have to be created randomly??

Thanks a lot, Iago

Tell me when this thread is updated:

Subscribe Now Add to my Tracker

Add your comments below

Characters left: 4000

Please note by submitting this form you acknowledge that you have read the Terms of Service and the comment you are posting is in compliance with such terms. Be polite. Inappropriate posts may be removed by the moderator. Send us your feedback.

Cryptography Discussions

Title Updated Last By Comments
CYPHER : pehopouhir Dec 5 Vijai 2
What kind of code is this ? and how to decode it ? Dec 5 daydreaming 1
oaep Nov 30 Ron0805 1
Trusted third Party 's security and availabili... Nov 29 M Danyal 1
Cryptic images Nov 24 jonlin 1
Man Behind Secret Code at CIA Offers New Hint Nov 22 wichita-rick 2
Solve this? Nov 21 Chaos 1
More from around the web