An open API service indexing awesome lists of open source software.

https://github.com/lpreterite/jquery.md5

基于jquery的md5加密
https://github.com/lpreterite/jquery.md5

Last synced: 3 months ago
JSON representation

基于jquery的md5加密

Awesome Lists containing this project

README

        

jQuery MD5 hash algorithm function


Calculate the md5 hash of a String
String $.md5 ( String str )

Calculates the MD5 hash of str using the » RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash.
MD5 (Message-Digest algorithm 5) is a widely-used cryptographic hash function with a 128-bit hash value. MD5 has been employed in a wide variety of security applications, and is also commonly used to check the integrity of data. The generated hash is also non-reversable. Data cannot be retrieved from the message digest, the digest uniquely identifies the data.
MD5 was developed by Professor Ronald L. Rivest in 1994. Its 128 bit (16 byte) message digest makes it a faster implementation than SHA-1.
This script is used to process a variable length message into a fixed-length output of 128 bits using the MD5 algorithm. It is fully compatible with UTF-8 encoding. It is very useful when u want to transfer encrypted passwords over the internet. If you plan using UTF-8 encoding in your project don't forget to set the page encoding to UTF-8 (Content-Type meta tag).
This function orginally get from the WebToolkit and rewrite for using as the jQuery plugin.

Example
Code

$.md5("I'm Persian.");

Result

"b8c901d0f02223f9761016cfff9d68df"