Re: [PHP] Padding with mcrypt_generic

2002-01-15 Thread Joe Conway (wwc)
Ben Sinclair wrote: > That would work for me, but I have to deal with many files that I have already > encrypted and no longer know the correct sizes of. My search and replace for > the padding characters doesn't work because the files sometimes contain those > padding characters. > > -- > Ben S

Re: [PHP] Padding with mcrypt_generic

2002-01-15 Thread Ben Sinclair
ECTED] - Original Message - From: "Joe Conway (wwc)" <[EMAIL PROTECTED]> To: "Ben Sinclair" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, January 14, 2002 7:55 PM Subject: Re: [PHP] Padding with mcrypt_generic > I worked around this by pa

Re: [PHP] Padding with mcrypt_generic

2002-01-14 Thread Joe Conway (wwc)
Ben Sinclair wrote: > I'm trying to use mcrypt_generic and it works fine except it pads the data > with ^@'s when, according to the manual page, the length of the data is not > n * blocksize. > > I've been trying to remove the padding from my decrypted data using > something like "$string = str_