I am using mcrypt to move data between servers such that the end user cannot view source to see the contents of 2 hidden fields.
This is working fine in IE6, but in Firefox I am getting a string of ? after the data when I display the decrypted data, although the data itself works fine in a maths calculation.
I've tried the following to remove the ? with no avail:
rtrim($str)
rtrim($str, "\0")
rtrim($str, "?")
I know whats going on, I am using a 32 bit encryption block size so the data is being padded out to a multiple of 32 characters, what I need to know is how to get rid of the padding that is being displayed in Firefox.
I don't know if it is relevant but if I paste 135����������������������������� into PHP designer it displays as 135 followed by small squares instead of ?
I hope someone can tell me how to do this.
Blu