mirror of
https://github.com/emn178/js-md4.git
synced 2026-08-13 13:01:55 +08:00
Added missing arrayBuffer method.
This commit is contained in:
+7
-2
@@ -52,9 +52,14 @@
|
||||
<pre class="prettyprint source"><code>npm install js-md4</code></pre><h2>Notice</h2><p><code>buffer</code> method is deprecated. This maybe confuse with Buffer in node.js. Please use <code>arrayBuffer</code> instead.</p>
|
||||
<h2>Usage</h2><p>You could use like this:</p>
|
||||
<pre class="prettyprint source lang-JavaScript"><code>md4('Message to hash');
|
||||
|
||||
var hash = md4.create();
|
||||
hash.update('Message to hash');
|
||||
hash.hex();</code></pre><p>If you use node.js, you should require the module first:</p>
|
||||
hash.hex();
|
||||
|
||||
var hash2 = md4.update('Message to hash');
|
||||
hash2.update('Message2 to hash');
|
||||
hash2.array();</code></pre><p>If you use node.js, you should require the module first:</p>
|
||||
<pre class="prettyprint source lang-JavaScript"><code>var md4 = require('js-md4');</code></pre><p>It supports AMD:</p>
|
||||
<pre class="prettyprint source lang-JavaScript"><code>require(['your/path/md4.js'], function (md4) {
|
||||
// ...
|
||||
@@ -93,7 +98,7 @@ md4.arrayBuffer(''); // ArrayBuffer</code></pre><h2>License</h2><p>The project i
|
||||
<br class="clear">
|
||||
|
||||
<footer>
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Mon Jan 23 2017 15:12:38 GMT+0800 (CST)
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Tue Jan 24 2017 15:15:12 GMT+0800 (CST)
|
||||
</footer>
|
||||
|
||||
<script> prettyPrint(); </script>
|
||||
|
||||
Reference in New Issue
Block a user