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 st

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 T

RE: [PHP] Encryption question

2003-10-10 Thread Mike Brum
php-gen Subject: Re: [PHP] Encryption question md5 is a one-way hash function. It is great for passwords. (I'm not sure if that technically qualifies as encryption because it is nearly impossible to decrypt..hmm) Anyway, I would recommend using it. - Brad -- PHP General Mailing List

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 t

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

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 usin

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 compar