Re: [PHP] Encrypt then decrypt yields extra dots at end

2009-09-09 Thread Ben Dunlap
I thought this code: $enc=mcrypt_ecb(MCRYPT_RIJNDAEL_256,salt123,encrypt_me,MCRYPT_ENCRYPT); $dec=mcrypt_ecb(MCRYPT_RIJNDAEL_256,salt123,$enc,MCRYPT_DECRYPT); echo $dec; would yield encrypt_me. The actual result is encrypt_me.. (bunch of extra dots). Why, and how do I

[PHP] Encrypt then decrypt yields extra dots at end

2009-09-07 Thread Kelly Jones
I thought this code: $enc=mcrypt_ecb(MCRYPT_RIJNDAEL_256,salt123,encrypt_me,MCRYPT_ENCRYPT); $dec=mcrypt_ecb(MCRYPT_RIJNDAEL_256,salt123,$enc,MCRYPT_DECRYPT); echo $dec; would yield encrypt_me. The actual result is encrypt_me.. (bunch of extra dots). Why, and how do I fix

[PHP] encrypt and decrypt in php

2006-03-07 Thread suresh kumar
I searched google,weberdev and php.net sites. i implemented the 2 encrypt and decrypt functions mcrypt_encrypt(),mcrypt_decrypt() and mcrypt_ecb() functions.but it not working properly.i dont need more complicated encrypt and decrypt functionality.just i want to encrypt my user id when i pass

RE: [PHP] encrypt and decrypt in php

2006-03-07 Thread Shaunak Kashyap
received this transmission in error, please notify the sender by reply e-mail and destroy all copies of this transmission. -Original Message- From: suresh kumar [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 12:45 AM To: php-general@lists.php.net Subject: [PHP] encrypt and decrypt

Re: [PHP] encrypt and decrypt

2004-11-03 Thread Jason Wong
On Wednesday 03 November 2004 11:47, Merlin wrote: Hi, I tryed the Pear package, and it encryptes well. However the encrypten is not URL friendly. My goal is to encrypt a 8 digit ID into a URL. Can this be that hard?`I bet there are hundreds of people wanting to make a similar encrypten with

Re: [PHP] encrypt and decrypt

2004-11-03 Thread Merlin
Jason Wong wrote: On Wednesday 03 November 2004 11:47, Merlin wrote: Hi, I tryed the Pear package, and it encryptes well. However the encrypten is not URL friendly. My goal is to encrypt a 8 digit ID into a URL. Can this be that hard?`I bet there are hundreds of people wanting to make a similar

Re[2]: [PHP] encrypt and decrypt

2004-11-03 Thread Richard Davey
Hello Merlin, Wednesday, November 3, 2004, 2:50:48 PM, you wrote: M The system will send out emails to customers with a link where they can change M their details. To identify the record, the link has to carry the client id. But M if it is obvious that this is the id, manipulation of the id can

Re: [PHP] encrypt and decrypt

2004-11-03 Thread Merlin
Richard Davey wrote: Hello Merlin, Wednesday, November 3, 2004, 2:50:48 PM, you wrote: M The system will send out emails to customers with a link where they can change M their details. To identify the record, the link has to carry the client id. But M if it is obvious that this is the id,

Re: [PHP] encrypt and decrypt

2004-11-03 Thread Jason Wong
On Wednesday 03 November 2004 14:50, Merlin wrote: Here is a short explanation: The system will send out emails to customers with a link where they can change their details. To identify the record, the link has to carry the client id. But if it is obvious that this is the id, manipulation of

[PHP] Encrypt and decrypt cookie

2002-12-13 Thread Titu Kim
Hi, I am using libmcrypt-2.5.3 to do encryption in php. I use exactly the steps provided in mcrypt_module_open available on php website http://php.benscom.com/manual/en/function.mcrypt-module-open.php I can encrypt and decrypt a string correctly. However, if i encrypt a cookie to write to

Re: [PHP] encrypt and decrypt functions kaput

2001-11-20 Thread David Robley
On Wed, 21 Nov 2001 10:49, Michael J. Seely wrote: HI Folks, I'm trying to use the encrypt and decrypt functions in PHP3. I get a fatal error Call to unsupported or undefined function encrypt() ... Is this a configuration issue or I'm I doing something wrong? Thanks If you are

[PHP] encrypt and decrypt in standard PHP

2001-02-23 Thread Zhu George-CZZ010
As the PHP manual indicates, we can use Mcrypt to do the encrypt and decrypt work in PHP, but that needs to download the encrypt module and recompile PHP. Is there any other way to encrypt and decrypt the string in standard PHP4.0.4 without any extension module? Thank you very much! --

Re: [PHP] encrypt and decrypt in standard PHP

2001-02-23 Thread Richard Lynch
February 23, 2001 11:07 AM Subject: [PHP] encrypt and decrypt in standard PHP As the PHP manual indicates, we can use Mcrypt to do the encrypt and decrypt work in PHP, but that needs to download the encrypt module and recompile PHP. Is there any other way to encrypt and decrypt the string

Re: [PHP] encrypt and decrypt in standard PHP

2001-02-23 Thread Mukul Sabharwal
t? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Zhu George-CZZ010 [EMAIL PROTECTED] Newsgroups: php.general Sent: Friday, February 23, 2001 11:07 AM Subject: [PHP] encrypt and dec