Inside PHP, can MD5 encrypt byte arrays?

Source: Internet
Author: User
Inside PHP, can MD5 encrypt byte arrays?

Reply content:

Inside PHP, can MD5 encrypt byte arrays?

After converting an array to a string, you should be able to encrypt

I don't know what you're talking about. 字节数组 a concept, php in which string can be stored and can be 字符串 stored 二进制数据 , if your data is stored in binary string , it can be directly encrypted by the md5 function, in the process of encryption, md5 depending on the parameters Number as binary data.

The array serialize or Json_encode into a string, which is then encrypted using the PHP built-in mcrypt_blowfish algorithm.


  
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.