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 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
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,
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
Java comes with Data encryption class MessageDigest (MD5 or SHA encryption)DescriptionIn the website, in order to protect the website member's user name and the password and so on privacy information, therefore we in the user registers the direct MD5
Text/Xuan soul 1. collision between Hash and Hash
Hash is a type of output that converts an input of any length into an output of a fixed length. An output of a fixed length can represent the input in "Actual Application Scenario. Hash Functions are
Text/Xuan soul 1. collision between Hash and Hash
Hash is a type of output that converts an input of any length into an output of a fixed length. An output of a fixed length can represent the input in "Actual Application Scenario. Hash Functions are
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.