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_

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