开发者

PHP MD5 implementation

I'm currently attempting to code one for part of a col开发者_运维问答lege project - binary/hex handling and cryptographic functions are well regarded in the mark scheme, so I thought I'd kill two birds with one stone.

However, the documentation availible on the algorithm itself is thorough but confusing. Is there a prexisting PHP libary/class that I could take a look at, or is there a step by step explanation of the algorithm, and the variables it uses (T and X especially) somewhere?

Thanks


Get hold of a copy of Bruce Schneier's Applied Cryptography. Although the source code is in C, he does provide an excellent background to the design principles and theory behind the algorithm.


Wikipedia has a good write up of the algorithm (along with the valid reasons you should avoid it).

It also contains a full pseudocode example of its implementation.


Here's MD5 written in C. I don't know if it'll help, considering it's not PHP, but here it is: http://www.google.com/codesearch/p?hl=en&sa=N&cd=10&ct=rc#zd_oLGoxqmg/md5.c&q=function%20md5.c%20lang:c

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜