Hi,

Has anyone here worked with mcrypt? I'm having trouble getting  
predicable results.

Example if I use 3DES and  MCRYPT_MODE_ECB I cannot encrypt "157058"  
and then decrypt it and get the same thing. The 8 is obscured as  
someother character.

Example if I use 3DES and  MCRYPT_MODE_NFO I cannot encrypt  
"poiuy789" and then decrypt it and get the same thing. The 789 is  
obscured as other characters.

My key and connect string are both 16 character.

Any Ideas. I am trying to create a login that encrypts the id and PW  
in a cookie so I can decryp and compare it to a record entry. The  
client wants the PW in plain text in the DB.

Sincerely,
Mike
-- 
Mike Brandonisio          *    Web Hosting
Tech One Illustration     *    Internet Marketing
tel (630) 759-9283        *    e-Commerce
[EMAIL PROTECTED]    *    http://www.jikometrix.net

     JIKOmetrix - Reliable web hosting




Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to