How does this MD5 algorithm hash strings?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,I have MD5 algorithm to digest strings.I can not analyse how it works.can any one help me to understand how 'CoreHash' works in my mfile? mfile is attached.thanks
0 件のコメント
回答 (1 件)
Walter Roberson
2016 年 7 月 12 日
It calls Java to create a message digest engine, and then it runs through the array or data file feeding chunks of the data to the engine, which updates the MD5 as it goes. Eventually it gets to the end and has the Java message digest engine return the hash, which it converts to hex.
You might prefer to look at http://www.mathworks.com/matlabcentral/fileexchange/5498-md5-signature-of-a-file
2 件のコメント
Walter Roberson
2016 年 7 月 12 日
https://docs.oracle.com/javase/7/docs/api/java/security/MessageDigest.html
Note the link to the algorithm description that is given there.
参考
カテゴリ
Help Center および File Exchange で Call Java from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!