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
To put it bluntly, here we mainly describe some encryption and decryption algorithms implemented by Java, and finally introduce digital certificates. For example, the basic one-way encryption algorithm:
Base64 strictly speaking, it belongs to the
1.MD5MD5 is message-digest algorithm 5 (Information-Digest algorithm 5), which is used to ensure complete and consistent information transmission. is one of the widely used hashing algorithms (also translation digest algorithm, hashing algorithm),
From: http://snowolf.iteye.com/blog/379860
Encryption and decryption were once an important component of my graduation project. After many years of work, it was too simple to recall the encryption and decryption algorithm at that time.To put it
Read Catalogue
First, Base64 code
Second, MD5, SHA1, SHA256, SHA512, HMAC implementation
GitHub Code
It is said that today 520 is a good day, why I think of 502, 500, 404 these? Fortunately the server is OK!First, Base64
Base64 is one of the most common encoding methods for transmitting 8Bit bytes of code on the network, and you can view rfc2045~rfc2049, which has a detailed specification of MIME. BASE64 encoding can be used to pass longer identity information in an
Here is a string 123456 for example, its MD5 ciphertext value is: e10adc3949ba59abbe56e057f20f883eHere, 1.txt is the file that needs to be encrypted.First, the method of encrypting strings and files with Oppnssl MD5.1. Oppnssl MD5 method of
AES encrypted block packet length must be 128 bits, the key length can be 128 bits, 192 bits, 256 bits of any one (if the data block and key length is insufficient, will be filled).
3DES, also known as Triple DES, is a mode of DES encryption
Basic one-way encryption algorithm: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 algorithm)HMAC
MD5:In the previous session of the Servlet Learning sessions (5), in order to enable the same number of digits for all random numbers obtained, we used MD5 to get a message digest of random numbers (or data fingerprints, data digests, etc.).MD5 can
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.