RE: [PHP] Encryption Question SOLVED

2004-06-22 Thread Jay Blanchard
[snip] I am encrypting some data on one server and now I am attempting to decrypt on another server using mcrypt_encrypt and mycrypt_decrypt (using same key and initialzation vector). It is almost working but I seem to still have a little problem, that data is missing the last character which

Re: [PHP] Encryption question

2003-10-11 Thread Jason Sheets
I wouldn't use crypt, instead use one of the proven more secure hashes like md5 or sha1. For password hashing I'd use md5 (PHP 3 and 4) if you want broad support or sha1 for a little more security (sha1 hasn't been in PHP as long (only since 4.3.0) so you will lose some compatability, Ryan

Re: [PHP] Encryption question

2003-10-10 Thread Ryan Thompson
Sorry. Just stumbled on crypt() On Friday 10 October 2003 22:31, Ryan Thompson wrote: I know this is an opinion thing but what's the best functions or function set for password encryption? Currently my project uses md5 but I thinks it's more for checksums isn't it? Also, is mcrypt used for

Re: [PHP] Encryption question

2003-10-10 Thread Brad Pauly
On Fri, 2003-10-10 at 20:31, Ryan Thompson wrote: I know this is an opinion thing but what's the best functions or function set for password encryption? Currently my project uses md5 but I thinks it's more for checksums isn't it? Also, is mcrypt used for passwords? I looks like it's a

RE: [PHP] Encryption question

2003-10-10 Thread Mike Brum
I think it all falls under the cryptography category, but you're right - it doesn't fall into the encryption/decryption scheme since it is only one-way. -M -Original Message- From: Brad Pauly [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 10:43 PM To: php-gen Subject: Re: [PHP

RE: [PHP] Encryption Question

2002-09-23 Thread John Holmes
I want to compare a password to a encrypted password stored in my mySQL database using password('password'), what's the best way to compare the two? Encrypted the password sent by the user and compare or pull the password from the database based on username, decrypt it and then compare?

RE: [PHP] Encryption Question

2002-09-23 Thread Mark Charette
Just how are you going to decrypt it? Password encryption is ordinarily one-way - you have no choice. You have to compare encrypted passwords. -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] SI want to compare a password to a encrypted password stored in my mySQL database