diff options
Diffstat (limited to 'WebInterface/NodeJSServer/src/modules/hash.js')
-rw-r--r-- | WebInterface/NodeJSServer/src/modules/hash.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WebInterface/NodeJSServer/src/modules/hash.js b/WebInterface/NodeJSServer/src/modules/hash.js index 826c8ee..3abcc21 100644 --- a/WebInterface/NodeJSServer/src/modules/hash.js +++ b/WebInterface/NodeJSServer/src/modules/hash.js @@ -1,3 +1,6 @@ +/** + * Creates Base64 String with SHA-256 Hash of given string + */ String.prototype.getHash = async function() { let data = new ArrayBuffer(this.length * 2); let bufferView = new Uint16Array(data); @@ -14,4 +17,4 @@ String.prototype.getHash = async function() { } return btoa(base64String); -} +}; |