Page 1 of 1

Encrypt Methods

Posted: Sun Mar 11, 2007 5:02 pm
by JustinMs66
i am looking for a page that explains the different built-in common encryption types for php
(md5, sha1...etc)

can anyone help?

Posted: Sun Mar 11, 2007 5:07 pm
by aaronhall
Have you looked through wikipedia? http://www.php.net/mcrypt lists all of mcrypt's encryption methods.

Posted: Sun Mar 11, 2007 5:12 pm
by JustinMs66
aaronhall wrote:Have you looked through wikipedia? http://www.php.net/mcrypt lists all of mcrypt's encryption methods.
i cant get mcrypt to work. i always get errors like:

Code: Select all

Warning: mcrypt_ecb() [function.mcrypt-ecb]: Attempt to use an empty IV, which is NOT recommend...

Posted: Sun Mar 11, 2007 5:13 pm
by aaronhall

Posted: Sun Mar 11, 2007 5:16 pm
by JustinMs66
aaronhall wrote:mcrypt_create_iv()?
ok but then how do i use that IV with my

Code: Select all

mcrypt_ecb()
?

Posted: Sun Mar 11, 2007 5:21 pm
by aaronhall
Check the manual entry. It's the last parameter.