Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: test/stub-modules/utils.js

Issue 29606600: Issue 5146 - Implement DownloadableSubscription parsing in C++ (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Left Patch Set: Added md5 checksum. Reorganized some code. Created Nov. 28, 2017, 10:46 p.m.
Right Patch Set: Removed Md5sum and associated code Created Aug. 14, 2018, 12:38 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « lib/synchronizer.js ('k') | test/synchronizer.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 "use strict"; 1 "use strict";
2 2
3 const crypto = require("crypto");
4
5 exports.Utils = { 3 exports.Utils = {
6 generateChecksum(lines)
7 {
8 let buffer = new Buffer(lines.join("\n"), "utf-8");
9 let hash = crypto.createHash("md5");
10 hash.update(buffer);
11 return hash.digest("base64").replace(/=+$/, "");
12 },
13 yield() {} 4 yield() {}
14 }; 5 };
LEFTRIGHT

Powered by Google App Engine
This is Rietveld