Problem: an ASP to ASP is being created. net mall revision, the original registered users need to retain, the original user password is ASP MD5, 32-bit encryption, remember ASP MD5 and ASP.. Net's MD5 encryption results are not equal, so I tried:The
When the string to be MD5 encrypted does not contain Chinese characters, the encryption result of ASP. NET is the same as that of ASP:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 response.
When the string to be MD5 encrypted does not contain Chinese characters, the encryption result of ASP. NET is the same as that of ASP:
CopyCode The Code is as follows: Response. Write (formsauthentication. hashpasswordforstoringinconfigfile
test
sha1 encryption
(Press ENTER)
========================================== ==============================================
This is a transfer to others, and the source is unknown.ASP. NET implements MD5 Encryption Algorithm In
In. net, because. net framework encapsulates common encryption algorithms, it takes only a few lines of code to implement the standard MD5 Algorithm:
Public string Md5 (string strPassword){MD5CryptoServiceProvider hashmd5;Hashmd5 = new
MD5 's full name is Message-digest algorithm 5 (Information-Digest algorithm), in the early 90 by MIT Laboratory for Computer Science and RSA Data Security Inc Ronald L. Riv EST developed, through the development of MD2, MD3 and MD4. Its role is to
Online ASP Encryption characters MD5 many, but also very common, but the file MD5 is indeed very few, because of the ASP language itself limitations. We know that the MD5 of strings can be used for irreversible encryption of plaintext, which
When the string to be MD5 encrypted does not contain Chinese, then the ASP.net encryption result is consistent with the ASP:
Copy Code code as follows:
Response.Write (FormsAuthentication.HashPasswordForStoringInConfigFile ("www.mzwu.
Using the following method, you can enter data directly, back to the MD5 encrypted code ///UseMd5Encryption The data entered PublicStaticStringMD5 (StringSourcein) {MD5CryptoServiceProvider MD5CSP=NewMD5CryptoServiceProvider (); byte[] Md5source
ASP. NET summary,Zookeeper
ASP. although the NET video has been watched, the connection between each chapter in the video is not very strong, so I will draw a mind map to connect the knowledge after class, I just sorted it out based on my notes and
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.