md5

version: 1 6 6 official


描述

计算输入内容的md5


关于

The MD5 message-digest algorithm is a widely used hash function producing a 128-bit hash value. MD5 was designed by Ronald Rivest in 1991 to replace an earlier hash function MD4,[3] and was specified in 1992 as RFC 1321.

MD5讯息摘要演算法(英语:MD5 Message-Digest Algorithm),一种被广泛使用的密码杂凑函数,可以产生出一个128位元(16个字节)的散列值(hash value),用于确保信息传输完整一致。MD5由美国密码学家罗纳德·李维斯特Ronald Linn Rivest)设计,于1992年公开,用以取代MD4演算法。这套演算法的程序在 RFC 1321 中被加以规范。

MD5 can be used as a checksum to verify data integrity against unintentional corruption. Historically it was widely used as a cryptographic hash function; however it has been found to suffer from extensive vulnerabilities. It remains suitable for other non-cryptographic purposes, for example for determining the partition for a particular key in a partitioned database, and may be preferred due to lower computational requirements than more recent Secure Hash Algorithms.[4]

数据(如一段文字)运算变为另一固定长度值,是杂凑算法的基础原理。

1996年后被证实存在弱点,可以被加以破解,对于需要高度安全性的资料,专家一般建议改用其他演算法,如SHA-2。2004年,证实MD5演算法无法防止碰撞攻击英语Collision_attack,因此不适用于安全性认证,如SSL公开金钥认证或是数位签章等用途。