Objective:
For the SHA Safe hashing algorithm, before how to use, just stay in the heard of the stage, today in the picture Caching framework Glide source code found that its cache key is not MD5 encryption algorithm, but SHA-256 encryption
Objective:For the SHA Secure Hash algorithm, not used before, just stay in the heard of the stage, today in the picture cache frame Glide source found that its cache key is not MD5 encryption algorithm, but SHA-256 encryption algorithm, this just
The Java encryption and decryption technology series SHA
Order
Background
Body
Comparison of SHA-1 and MD5
Code implementation
Conclusion
OrderThe basic one-way encryption algorithm--MD5 is introduced in the
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
OrderThe basic one-way encryption algorithm--MD5 is introduced in the previous article, and the principle of its realization is also roughly stated. This article continues the one-way encryption mentioned earlier, mainly on Sha, like MD5, Sha is
L MD5 (Message Digest algorithm 5): a one-way hashing algorithm developed by RSA Data security Company.
L SHA (Secure Hash algorithm): A 160-bit value can be generated for any length of data operation;
SHA-1
In 1993, the Safe hashing algorithm (SHA)
Hash
Hash, the general translation to do "hash", there is a direct transliteration of "hash", is the arbitrary length of the input (also known as pre-mapping, pre-image), through the hash algorithm, transformed into a fixed-length output,
a hash table, also known as a hash table, is a data structure that is accessed directly from a key value. That is, it accesses records by mapping key code values to a location in the table to speed up lookups. This mapping function is called a hash
Secure Hash algorithm SHA (Secure hash Algorithm,sha)The idea of the algorithm is to receive a piece of plaintext, and then convert it into a paragraph (usually smaller) ciphertext in an irreversible way, or simply to take a string of input codes
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.