Pear Pear :: Text

xiaoxiao2021-03-06  41

Haohappy / text 2004-11-01

About random password

The system automatically generates a random password or password, which is one of the common functions of the web program. For example, such a registration mode You will not feel unfamiliar: When the user registers, the system generates a random password for the user to register the mailbox. After the user logs in to his own mailbox, after the random password given by the system, the login system is modified to the password you want. This avoids system security than the user password in the network compared to the direct password to the user's mailbox, which greatly enhances system security. The random password is often used in the "Forgot Password" function. After the user forgets the password, the system can automatically regenerate into a password.

/ * The generation of random strings has a cool app that the verification code is verified, and there is a corresponding class library text_captcha in the PEAR. At present, Text_captcha is only Alpha version, so we will not discuss it, wait until the Stable version is released, I will introduce you. Text_captcha is based on the upcoming text_password development. In this paper, there will be an example of a graphical verification code, which is developed using Text_Password GD. * /

The passwords we generated in the web development are composed of numbers, letters, and special characters. Depending on the different combination, the password type can be approximately divided into pure digital, pure letter type, pure special character type, digital alphabet hybrid, digital letter special character hybrid, etc.

Pear :: Text_Password Introduction http://pear.php.net/package/text_password

Today, the PEAR class introduced to everyone is PEAR :: Text_password, which can be called a random password generator. Pear :: text_password is a relatively simple class, only a PASSWORD.PHP, only 500 rows in the code connection. Text_password is easy to use, the function is quite powerful, can meet the demand in the WEB applications (if you think you need to customize some of your own features, you can develop this class library, quite convenient).

The main features of Text_Password are as follows:

2 Create a random password in a variety of formats, such as pure letters, pure numbers, pure special characters and mixed passwords;

2 Customize the length of the password (number of characters);

2 There can be only certain characters in the qualified password;

2 Create multiple passwords in one time;

2 Create a password based on a string (non-random, processing the string using different algorithms, such as flip).

Text_password divides the password into pronounceable and unpronounceable two types. The pronounded type is a pure English word master type, although the entire password is not normal English words, it can generally be divided into pronunciation, which helps to memorize, such as "Steagionea". Inappropriate types are mixed, unable to pronounce, such as "MIC106AIB7". Obviously, the pronunciation type is easy to remember and the safety is relatively poor, and the non-pronounced type is not easy to memorize but the security is better. Typically, we don't need to remember the tramper password, so it is more common to use unpronounceable. You can choose the actual situation.

system requirement:

PHP4.3. * / PHP5

Pear :: text_password

转载请注明原文地址:https://www.9cbs.com/read-54442.html

New Post(0)