Encrypt Methods

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
JustinMs66
Forum Contributor
Posts: 127
Joined: Sun Sep 03, 2006 4:18 pm

Encrypt Methods

Post 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?
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

Have you looked through wikipedia? http://www.php.net/mcrypt lists all of mcrypt's encryption methods.
User avatar
JustinMs66
Forum Contributor
Posts: 127
Joined: Sun Sep 03, 2006 4:18 pm

Post 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...
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

User avatar
JustinMs66
Forum Contributor
Posts: 127
Joined: Sun Sep 03, 2006 4:18 pm

Post by JustinMs66 »

aaronhall wrote:mcrypt_create_iv()?
ok but then how do i use that IV with my

Code: Select all

mcrypt_ecb()
?
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

Check the manual entry. It's the last parameter.
Post Reply