Why is mcrypt_encrypt() putting binary characters at the end of my string?

前端 未结 4 1948
有刺的猬
有刺的猬 2020-12-06 18:33

Here is a PHP demo script that encrypts and decrypts data:



        
4条回答
  •  误落风尘
    2020-12-06 19:19

    It seems to be a known problem. Use rtrim() after decoding to remove the excess NULs.

提交回复
热议问题