php/mcrpyt Question concerning salt a...

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
Generic Substitution Cipher Help (I think) Aug 12 Damein 1
Cube26A Cipher Aug 9 pvial00 1
Galaxy Cipher Instrument open sourced. Jul '17 Russell Lee 2
Simple cipher I made. Jul '17 Mysteryman 1
HELP! I need help decrypting this! Jun '17 Anon 1
Who can decode this cypher and how long did it ... Jun '17 bhouseman 1
Scroll Cipher Instrument-open sourced. Jun '17 Russell Lee 1
More from around the web