When I use decrypt from MCrypt, in firefox, it displays a bunch of null characters at the end of my string. I've checked my records, and the strings are encrypted properly, so I am not sure why it is adding a series of nulls at the end of the string.
e.g.
String is "hello"
Encrypts fine.
When I decrypt it, it shows "hello[][][][][][][][][][][]"
where [] is the null character.
Is there anyway to remove the null characters at the end of any decrypted string?
Thanks!.
Note: The null characters are also being churned out in IE, however, it does not display them.