Summary on how to use the encrypted extended library

Source: Internet
Author: User
PHP encryption extension Library-Mhash extension library what is Mhash Extension Library: Mhash is an irrevocable php encryption extension library based on the principle of discrete mathematics, which is disabled by default. Mhash can be used to create verification values, message digests, message authentication codes, and save key information (such as passwords) in the original text. 1. mhash Extension Library installation the Mhash Library installation is similar to the Mcrypt Extension Library installation. I will not discuss it here, you can refer to the previous article "PHP encryption extension Library-Mcrypt extension library... PHP encryption extension Library-Mhash extension library what is Mhash Extension Library: Mhash is an irrevocable php encryption extension library based on the principle of discrete mathematics, which is disabled by default. Mhash can be used to create verification values, message digests, message authentication codes, and save key information (such as passwords) in the original text. 1. mhash Extension Library installation the Mhash Library installation is similar to the Mcrypt Extension Library installation. I will not discuss it here, you can refer to the previous article "PHP encryption extension Library-Mcrypt Extension Library"! 2. the Mhash Extension Library constant Mhash library supports multiple hash algorithms, such as MD5, SHA, and CRC32. you can use the mhash_count () and mhash_get_hash_name () functions to output the supported algorithm names. Let's take a look at the sample code:

1. PHP encrypted Extension Library-Mhash Extension Library instance usage details

Introduction: php returns a 3des encrypted url to. net and decrypts it on the. net side. The implementation of php has never been able to match with the. net end. remember this first and hope to see some tips. There are countless people on the internet who have copied and copied the copy, and they have never personally verified it. I hope you will be able to follow the rigorous method in the future. Before the PHP encryption extension Library Mcrypt encrypts and decrypts data, an initialization vector (iv for short) is created. By $ iv = mcrypt_create_iv (mcrypt_g...

5. enable encryption and decryption in mcrypt-PHP Tutorial

Introduction: mcrypt enables detailed parsing of encryption and decryption processes. The Mcrypt extension library can implement encryption and decryption, that is, it can encrypt or restore the plaintext. 1. the PHP encryption extension Library Mcrypt is not installed in the standard PHP installation process.

6. share the PHP encryption extension Library Mcrypt installation and application tips _ PHP Tutorial

Introduction: we will share the installation and application skills of the PHP encrypted Extension Library Mcrypt. Among them, the Mcrypt extension library can implement encryption and decryption, that is, both plaintext encryption and ciphertext restoration. 1. the PHP encryption extension Library Mcrypt is not installed in the standard PHP installation process

7. PHP encryption extension Library Mcrypt installation and application instance _ PHP Tutorial

Introduction: Install and apply the PHP encrypted Extension Library Mcrypt. In php, if we want to use the PHP Mcrypt to encrypt the extension Library, we must first install the encrypted extension library and then use it, because it is not installed by default like the gd Library. Mcrypt

8. PHP encryption extension Library Mcrypt installation and instance _ PHP Tutorial

Introduction: install and use the PHP encrypted Extension Library Mcrypt. Mcrypt briefly introduces the importance of ensuring the security of PHP programmers in writing code programs in addition to ensuring the high performance of code. In addition

9. Recently, I want to install the encrypted Extension Library Mcrypt. the environment Windows 7 apache always fails.

Introduction: The encrypted Extension Library Mcrypt has been installed recently, and Windows 7 apache always fails.

10. php-mcrypt encryption module usage

Brief introduction: when writing code programs, PHP programmers should not only ensure the high performance of the code, but also ensure the security of the program. In addition to several built-in encryption functions, PHP also provides a more comprehensive PHP encryption extension Library, Mcrypt and Mhash. Among them, the Mcrypt extension library can implement encryption and decryption, that is, both plaintext encryption and ciphertext restoration. The PHP encryption extension Library Mcrypt algorithm and encryption mode the Mcrypt library supports more than 20 encryption algorithms and 8 encryption modes. you can use the mcrypt function

The above is a summary of how to use the encrypted Extension Library. For more information, see other related articles in the first PHP community!

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.