Detailed explanation of how to execute hash and salt operations on passwords
The hash and salt operations on passwords are not unfamiliar. The two Visual Studio Enterprise Edition examples use this method to encrypt this
Currently, the MD5 password database has a huge amount of data, and most common passwords can reverse query the plaintext of the password through the MD5 Digest. To prevent internal personnel (persons who can access database or database backup files)
The hash and Salt operations on passwords are not unfamiliar. The two Visual Studio Enterprise Edition examples use this method to encrypt this method. Combined with the sample code, I summarized a class that includes static methods such as
Ask, If I transcode this way, is it more secure. For example: sha1 (md5 (password) I want to know: 1 is necessary. 2. if so, will it have a great impact on performance or what else I can't think, what problems may occur in the future, etc. I hope
Ask, I if this transcoding, is not security will be a little higher.
For example: SHA1 (MD5 ("password"))
What I want to know is:
1 is that necessary?
2 If this is possible, the impact on performance will be very large
or other what I can not think
Transfer from http://www.smatrix.org/bbs/simple/index.php?t5591.html//////////////////////////////////////////////////////////////////////////////Directory1. PHP hash function and its application2. Symmetric cipher algorithm in PHP and its
General system Database Password encryption method:
MD5 after the database is saved
SHA1 Hash after deposit into the database
disadvantage: Hackers can be password brute force to obtain password information, the practice is to hash the
Hubble News Channel May 30 today Xiao-bian in the fried egg net found a long article, with the player's words "I ... I've never seen anything so long on a fried egg ... In addition to sidebar ads ... ", this article title" User password thin paper ",
Encryption applies To:
Microsoft®.net
Safety
Microsoft®visual basic®.net
C#
Summary: Learn how to use the encryption capabilities of the. NET Framework to create wrappers that are similar to those described in this article to protect your
PHP learning-PHP encryption, PHP learning-PHP Encryption
There are several encryption methods in PHP:1. MD5 Encryption
String md5 (string $ str [, bool $ raw_output = false])
Parameters
Str -- the original string.
Raw_output -- if the optional
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.