C # often involves encrypting the user's password to decrypt the algorithm, where using MD5 encryption is the most common way to implement it. This paper summarizes the general algorithms and combines their own little experience to share to everyone.
About hash and MD5
It seems that many people are not very familiar with the hash algorithm. Here, I will give a brief explanation.I don't want anyone to ask how to decrypt MD5 and sha1 later!First, let's briefly talk about the
MD5 algorithm, has been known, as a senior or entry-level developers, are called "MD5 ah, know know." A few days ago the program slightly small problem, because some places are encrypted, and some places are not encrypted. A colleague is proud to
MD5 is a secure hashing algorithm, input two different plaintext will not get the same output value, according to the output value, can not get the original plaintext, that is, its process is irreversible; So to decrypt MD5 there is no ready-made
1. Java Security Architecture 1.1 Introduction to Java Security architectureJava provides classes and interfaces for the security framework. The JDK security API is the core API for the Java programming language, located in the Java.security package
The simple Java encryption algorithm is:BASE64 strictly speaking, it belongs to the encoding format, not the encryption algorithmMD5 (Message Digest algorithm 5, Information Digest algorithm)SHA (Secure Hash algorithm, security hashing
This paper mainly introduces the Java implementation of the common encryption algorithm-one-way encryption algorithm MD5 and Sha, as follows:
1, the Java security architecture
Introduction to 1.1 Java security architecture
provides classes and
OrderIn the previous article, we introduced the most basic coding method--base64, and also briefly mentioned the principle of coding. This article continues to decrypt the series, of course, is also the introduction of a comparative basis of the
I. Brief description
MD5: All called message digest algorithm 5 (Information digest algorithm), can be encrypted, but not decrypted, belong to one-way encryption, usually used for file verification
BASE64: The 8-bit byte of any sequence is
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.