Skip to content

Commit

Permalink
fixes #38
Browse files Browse the repository at this point in the history
ref #44
  • Loading branch information
ben-ekw committed May 24, 2022
1 parent 67d3f49 commit 6dc3eb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hashes.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,11 @@
// public method for encoding
this.encode = function(input) {
var i, j, triplet,
output = '',
len = input.length;
output = '';

pad = pad || '=';
input = (utf8) ? utf8Encode(input) : input;
len = input.length;

for (i = 0; i < len; i += 3) {
triplet = (input.charCodeAt(i) << 16) | (i + 1 < len ? input.charCodeAt(i + 1) << 8 : 0) | (i + 2 < len ? input.charCodeAt(i + 2) : 0);
Expand Down

0 comments on commit 6dc3eb6

Please sign in to comment.