PHP MD5 and md5_file detailed description _php tutorial

Source: Internet
Author: User
MD5 ($STR) hash string encryption

Instance
*/
$str = "Hello World"; Defining strings
$result =md5 ($STR); Performing cryptographic operations
echo $result; Output converted Results

Md5_file ($filepath) hash encryption of file contents

$file = "Test.txt"; Definition file
$result =md5_file ($file); Perform a calculation operation
echo $result; Results after the output calculation

/*

The Md5_file () function computes the MD5 hash of the file.

The MD5 () function uses RSA data security, including the MD5 message selected passage algorithm.

If successful, returns the computed MD5 hash, or false if it fails.

http://www.bkjia.com/PHPjc/632347.html www.bkjia.com true http://www.bkjia.com/PHPjc/632347.html techarticle MD5 ($STR) hashes an instance of a string */$str =hello world;//definition string $result =md5 ($STR);//Perform cryptographic operation Echo $result;//output converted result//md5_file ($ Fi ...

  • 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.