Skip to content

Commit

Permalink
Fixed incorrect result when first bit is 1 of bytes. #18
Browse files Browse the repository at this point in the history
  • Loading branch information
emn178 committed Dec 18, 2017
1 parent 5f0bd5a commit 0263ab8
Show file tree
Hide file tree
Showing 14 changed files with 1,736 additions and 267 deletions.
2 changes: 0 additions & 2 deletions .covignore

This file was deleted.

9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/node_modules/
/coverage/
/.nyc_output/
/tests/
/doc/
.covignore
.travis.yml
.npmignore
bower.json
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ node_js:
- "8.6.0"
before_install:
- npm install coveralls
- npm install mocha-lcov-reporter
script: npm run-script coveralls
after_success: npm run coveralls
branches:
only:
- master
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## v0.7.3 / 2017-12-18
### Fixed
- incorrect result when first bit is 1 of bytes. #18

## v0.7.2 / 2017-10-31
### Improved
- performance of hBytes increment.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-md5",
"version": "0.7.2",
"version": "0.7.3",
"main": ["src/md5.js"],
"ignore": [
"tests"
Expand Down
4 changes: 2 additions & 2 deletions build/md5.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/Md5_.html
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Md5_.html
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Oct 31 2017 20:29:31 GMT+0800 (CST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Dec 18 2017 18:48:59 GMT+0800 (CST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Md5_.html
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Oct 31 2017 20:29:31 GMT+0800 (CST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Dec 18 2017 18:48:59 GMT+0800 (CST)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Md5_.html
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Oct 31 2017 20:29:31 GMT+0800 (CST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Dec 18 2017 18:48:59 GMT+0800 (CST)
</footer>

<script> prettyPrint(); </script>
Expand Down
4 changes: 2 additions & 2 deletions doc/md5.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h2>md5</h2>


<dt class="tag-version">Version:</dt>
<dd class="tag-version"><ul class="dummy"><li>0.7.2</li></ul></dd>
<dd class="tag-version"><ul class="dummy"><li>0.7.3</li></ul></dd>



Expand Down Expand Up @@ -1460,7 +1460,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Md5_.html
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Oct 31 2017 20:29:31 GMT+0800 (CST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Dec 18 2017 18:48:59 GMT+0800 (CST)
</footer>

<script> prettyPrint(); </script>
Expand Down
6 changes: 3 additions & 3 deletions doc/md5.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1 class="page-title">Source: md5.js</h1>
* [js-md5]{@link https://github.com/emn178/js-md5}
*
* @namespace md5
* @version 0.7.2
* @version 0.7.3
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2017

This comment has been minimized.

Copy link
@siderdox

siderdox Dec 7, 2022

* @license MIT
Expand Down Expand Up @@ -363,7 +363,7 @@ <h1 class="page-title">Source: md5.js</h1>
blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
}
blocks[14] = this.bytes &lt;&lt; 3;
blocks[15] = this.hBytes &lt;&lt; 3 | this.bytes >> 29;
blocks[15] = this.hBytes &lt;&lt; 3 | this.bytes >>> 29;
this.hash();
};

Expand Down Expand Up @@ -725,7 +725,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Md5_.html
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Oct 31 2017 20:29:31 GMT+0800 (CST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Dec 18 2017 18:48:59 GMT+0800 (CST)
</footer>

<script> prettyPrint(); </script>
Expand Down
Loading

0 comments on commit 0263ab8

Please sign in to comment.