A detailed summary of the PHP encryption extension

Source: Internet
Author: User
Tags crypt php language mcrypt
PHP Encryption Extension Library-mhash Extension Library What is the Mhash extension library: Mhash is a non-reversible PHP encryption extension library based on discrete mathematical principles, which is not turned on by default. Mhash can be used to create checksum values, message summaries, message authentication codes, and key information that does not need to be saved (such as passwords). 1.Mhash Expansion Library installation about the Mhash library installation is similar to the MCrypt expansion Library install, here is not a long introduction, we can refer to the previous article "PHP Encryption extension Library-mcrypt extension Library"! 2.Mhash Extension Library Constants The Mhash library supports a variety of hashing algorithms such as MD5,SHA,CRC32, which can be used to output supported algorithm names using the Mhash_count () and Mhash_get_hash_name () functions. Here's a look at the sample code: <?phpheader ("content-type:text/html; Charset=utf-8 "); $num = MH

1. Recommended 10 articles for crypt () function

Introduction: PHP Encryption extension Library-mhash Extension Library What is the Mhash extension library: Mhash is a non-reversible PHP encryption extension library based on discrete mathematical principles, which is not turned on by default. Mhash can be used to create checksum values, message summaries, message authentication codes, and key information that does not need to be saved (such as passwords). 1.Mhash Expansion Library installation about the Mhash library installation is similar to the MCrypt expansion Library install, here is not a long introduction, we can refer to the previous article "PHP Encryption extension library-mcrypt Extension Library ...

2. Summary of usage of PHP encryption mode instance

Introduction: PHP Encryption extension Library-mhash Extension Library What is the Mhash extension library: Mhash is a non-reversible PHP encryption extension library based on discrete mathematical principles, which is not turned on by default. Mhash can be used to create checksum values, message summaries, message authentication codes, and key information that does not need to be saved (such as passwords). 1.Mhash Expansion Library installation about the Mhash library installation is similar to the MCrypt expansion Library install, here is not a long introduction, we can refer to the previous article "PHP Encryption extension library-mcrypt Extension Library ...

3. Summary of articles about how the encryption extension library is used

Introduction: PHP Encryption extension Library-mhash Extension Library What is the Mhash extension library: Mhash is a non-reversible PHP encryption extension library based on discrete mathematical principles, which is not turned on by default. Mhash can be used to create checksum values, message summaries, message authentication codes, and key information that does not need to be saved (such as passwords). 1.Mhash Expansion Library installation about the Mhash library installation is similar to the MCrypt expansion Library install, here is not a long introduction, we can refer to the previous article "PHP Encryption extension library-mcrypt Extension Library ...

4. Summary of usage of PHP encryption extension MCrypt

Introduction: The PHP language comes with a lot of encryption and decryption methods and extensions, today we introduce one of the extended mcrypt extension, MCrypt extension to complete the common cryptographic algorithm encapsulation. In fact, the extension is the MCrypt Standard Class library encapsulation, MCrypt completed a considerable number of commonly used cryptographic algorithms, such as DES, TripleDES,

5. PHP Encryption Extension Library-mhash Extension Library instance usage detailed

Introduction: What is the Mhash extension library: Mhash is a non-reversible PHP encryption extension library based on discrete mathematical principles, which is not turned on by default. Mhash can be used to create checksum values, message summaries, message authentication codes, and key information that does not need to be saved (such as passwords).

6. PHP Encryption Extension Library-mcrypt extension Library instance Usage

Introduction: Before the beginning of the text, let us first understand what is the PHP encryption Extension Library: PHP is not only a few cryptographic functions (MD5,CRYPT,SHA1), in addition to PHP, there are some more comprehensive encryption extension library! Just like PHP does not support the operation of a certain function, but in the new version of this would like to provide support, it is provided in an extended manner, so that when we configure PHP, if we do not use this feature, we can let PHP do not load him. This saves server resources. provides its performance.

7. Specific introduction to PHP encryption extension MCrypt basic use

Summary: Mcrypt supports the following four types of block cipher modes: CBC, OFB,CFB, and ECB. If you use libmcrypt-2.4.x or later links, you can also support NOFB grouping mode and streaming mode. The following are the supported cryptographic modes and their corresponding predefined constants. 1. MCRYPT_MODE_ECB (electronic codebook) is suitable for random data, such as the ability to encrypt other keys in this mode. Since the data to be encrypted is

8. PHP's OpenSSL encryption Extension usage summary (recommended)

Introduction: The following small series for everyone to bring a PHP OpenSSL encryption extension use summary (recommended). Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.

9. PHP's OpenSSL encryption Extension usage summary

Introduction: The following small series for everyone to bring a PHP OpenSSL encryption extension use summary (recommended). Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.

PHP 3DES Encryption Algorithm implementation

Summary: What needs to be done recently, PHP returns a 3DES encrypted URL to. NET, and then. NET side decryption. PHP implementation has been unable to match the. NET side, first remember here, want to see the big God pointing. Countless copy of the online people, there is no personal verification, I hope we can uphold the rigorous way. PHP encryption Extension Library MCrypt before data is encrypted and decrypted, an initialization vector is first created, referred to as IV. by $iv = Mcrypt_create_iv (Mcrypt_g ...

Related Article

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.