⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 md5.bte

📁 java操作excel的类
💻 BTE
字号:
<%bte.doc super="item.bte" %><%bte.tpl name=pageTitle%>MD5<%/bte.tpl%><%bte.tpl name=description%>Generate MD5 hash sums.<%/bte.tpl%><%bte.tpl name=keywords%>md5, hash, sum, checksum, check sum, message digest, fingerprint, signature, java, util, utility, class, library, libraries, source, code, open source, gpl, javadoc, encoding, decoding, encoder, decoder, stream, streams, inputstream, outputstream, array, arrays, string, strings<%/bte.tpl%><%bte.tpl name=content%><div class=examplecode><h3>Example</h3><pre><span class=identifier>System</span><span class=separator>.</span><span class=identifier>out</span><span class=separator>.</span><span class=identifier>println</span><span class=separator>(    </span><span class=identifier>MD5</span><span class=separator>.</span><span class=identifier>getHashString</span><span class=separator>(        </span><span class=literal>&quot;Hello World&quot;    </span><span class=separator>));</span></pre></div><div class=securityalert><h3>Security Alert</h3>The MD5 class had a bug in version 1.02.23 and earlier that miscalculated MD5 sums for inputsof certain odd byte lengths.  Please consider the implications for your application andupgrade to the most recent version.</div><p>This class takes as input a message of arbitrary length and produces as outputa 128-bit "fingerprint" or "message digest" of the input. It is conjectured that it is computationally infeasible to produce two messages having the same message digest, or to produce any message having a given pre-specified target message digest. The MD5 algorithm is intended for digital signature applications, where a large file must be "compressed" in a secure manner before being encrypted with a private (secret) key under a public-key cryptosystem such as RSA.</p><p>This class is based on work by <a href="http://www.helsinki.fi/~sjpaavol/programs/md5/">Santeri Paavolainen</a>.and <a href="http://www.ietf.org/rfc/rfc1321.txt">RFC1321</a>.  This implementation is several timesfaster and much more memory efficient than Santeri's implementation.</p><p>[<a href="./#download">Download /w Source</a> |<a href="http://www.gjt.org/servlets/JCVSlet/log/gjt/com/Ostermiller/util/MD5.java/0">Version History</a> |<a href="MD5.java.html">Browse Source</a> |<a href="doc/com/Ostermiller/util/MD5.html">Documentation</a>]</p><br clear=all><div class=examplecode><h3>Example</h3><pre><span class=comment>// Print the MD5 hash for a line// read from standard input</span><span class=identifier>MD5InputStream in </span><span class=operator>= </span><span class=reservedWord>new </span><span class=identifier>MD5InputStream</span><span class=separator>(</span><span class=identifier>System</span><span class=separator>.</span><span class=identifier>in</span><span class=separator>);</span><span class=reservedWord>int </span><span class=identifier>b</span><span class=separator>;</span><span class=reservedWord>while </span><span class=separator>((</span><span class=identifier>b </span><span class=operator>= </span><span class=identifier>in</span><span class=separator>.</span><span class=identifier>read</span><span class=separator>()) </span><span class=operator>!= -</span><span class=literal>1 </span><span class=operator>&amp;&amp; </span><span class=identifier>b </span><span class=operator>!= </span><span class=literal>'\r' </span><span class=operator>&amp;&amp; </span><span class=identifier>b </span><span class=operator>!= </span><span class=literal>'\n'</span><span class=separator>);</span><span class=identifier>System</span><span class=separator>.</span><span class=identifier>out</span><span class=separator>.</span><span class=identifier>println</span><span class=separator>(</span><span class=identifier>in</span><span class=separator>.</span><span class=identifier>getHashString</span><span class=separator>());</span></pre></div><H2>Input Stream</h2><p>A filtered input stream that computes an MD5 sum for anything read.</p><p>[<a href="./#download">Download /w Source</a> |<a href="http://www.gjt.org/servlets/JCVSlet/log/gjt/com/Ostermiller/util/MD5InputStream.java/0">Version History</a> |<a href="MD5InputStream.java.html">Browse Source</a> |<a href="doc/com/Ostermiller/util/MD5InputStream.html">Documentation</a>]</p><br clear=all><div class=examplecode><h3>Example</h3><pre><span class=comment>// Write out hello world// and print its MD5 hash </span><span class=identifier>MD5OutputStream out </span><span class=operator>= </span><span class=reservedWord>new </span><span class=identifier>MD5OutputStream</span><span class=separator>(</span><span class=identifier>System</span><span class=separator>.</span><span class=identifier>out</span><span class=separator>);</span><span class=identifier>out</span><span class=separator>.</span><span class=identifier>write</span><span class=separator>(</span><span class=literal>&quot;Hello World\n&quot;</span><span class=separator>.</span><span class=identifier>getBytes</span><span class=separator>());</span><span class=identifier>System</span><span class=separator>.</span><span class=identifier>out</span><span class=separator>.</span><span class=identifier>println</span><span class=separator>(</span><span class=identifier>out</span><span class=separator>.</span><span class=identifier>getHashString</span><span class=separator>());</span></pre></div><H2>Output Stream</h2><p>A filtered output stream that computes an MD5 sum for anything written.</p><p>[<a href="./#download">Download /w Source</a> |<a href="http://www.gjt.org/servlets/JCVSlet/log/gjt/com/Ostermiller/util/MD5OutputStream.java/0">Version History</a> |<a href="http://www.gjt.org/servlets/JCVSlet/show/gjt/com/Ostermiller/util/MD5OutputStream.java/HEAD">Browse Source</a> |<a href="doc/com/Ostermiller/util/MD5OutputStream.html">Documentation</a>]</p><br clear=all><%/bte.tpl%><%/bte.doc%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -