0.1.0 release! - tests pass now

This commit is contained in:
Amrit Panesar committed 2017-04-18 13:05:54 -07:00
1 parent a47c1cadfe
commit 014a5fc06c
4 files changed
+11 -6

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<includedPredefinedLibrary name="Node.js Core" />
</component>
</project>
+2 -2
View File
@@ -348,8 +348,8 @@
} }
return { return {
hex: _hex, hex: _hex.apply(this, arguments),
raw: _raw raw: _raw.apply(this, arguments)
}; };
}; };
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "node-md6", "name": "node-md6",
"version": "0.0.7", "version": "0.1.0",
"description": "MD6 Implementation in Node", "description": "MD6 Implementation in Node",
"main": "md6.js", "main": "md6.js",
"files": [ "files": [
+2 -3
View File
@@ -1,7 +1,6 @@
var md6hash = require("../md6").md6hash; var md6 = require("../md6");
var fs = require("fs"); var fs = require("fs");
var md6 = new md6hash();
var result = fs.readFileSync("result.csv", "ascii"); var result = fs.readFileSync("result.csv", "ascii");
result = result.split("\n"); result = result.split("\n");
@@ -17,7 +16,7 @@ for(var i in result) {
var data = a[1]; var data = a[1];
var comp = a[2]; var comp = a[2];
var hash = md6.hex(data, size); var hash = md6.getHashOfText(data, size);
total++; total++;
if (hash === comp) ok++; if (hash === comp) ok++;