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
/*** Class Name: md5digest * Description: MD5 public parameters used for password encryption * Written on: 2001/03/05 * Modifier: * Modify information: * @ Author edgarlo edgarlo@china.com* @ Version 1.0 */
Import java. Security.
MD5 's full name is Message-digest algorithm 5, developed by the MIT Computer Science Lab and RSA Data Security Inc in the early 90, with the development of MD2, MD3 and MD4.MD5 transforms any length of "byte string" into a large integer of 128bit,
Package com.mi.util;/*** Md5+salt Length of 32 encryption* @author Admin**/public class MD5 {public static void Main (string[] args) {MD5 MD5 = new MD5 ();Md5.getmd5ofstr ("799549598txj/");/*** First time: 8C40EBEEFA2085F6E420F3E1493670EC 32* Second
Summary: Cryptography is a technical science that studies the compilation of passwords (encryption: encode) and deciphering passwords (decryption: decode. The objective law of password change is studied. it is used to compile passwords to keep
CommentsSummary: cryptography is a technical science that studies the compilation of passwords (encryption: encode) and deciphering passwords (decryption: decode. The objective law of password change is studied. It is used to compile passwords to
The full text of the program is as follows:Copy codeThe Code is as follows:Package com. neusoft. test. util. crypt;Import java. io. IOException;Import java. io. UnsupportedEncodingException;Import java.net. URLDecoder;Import java.net.
The example of this paper describes the Base64 encryption, MD5 encryption and SHA1 encryption implemented by JS. Share to everyone for your reference, specific as follows:
1, Base64 encryption
The Base64.js file is introduced into the page, 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.