diff --git a/md6.js b/md6.js index 4335e5a..1814be8 100644 --- a/md6.js +++ b/md6.js @@ -36,7 +36,7 @@ var exports = {}; - exports.md6hash = function () { + exports._hash = function () { function to_word(input) { var i, length = input.length, output = []; @@ -353,6 +353,20 @@ }; }; + exports.getHashOfText = function() { + var out = _hash.apply(this, arguments); + return out.hex; + }; + + exports.getRawHashOfText = function() { + var out = _hash.apply(this, arguments); + return out.raw; + }; + + exports.getHashAsObject = function() { + return _hash.apply(this, arguments); + }; + return exports; })); \ No newline at end of file diff --git a/package.json b/package.json index 51da27f..de16fa3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-md6", - "version": "0.0.5", + "version": "0.0.6", "description": "MD6 Implementation in Node", "main": "md6.js", "files": [