aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/script_entries/crypto.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/script_entries/crypto.js b/lib/script_entries/crypto.js
index d8d9c0a..ba73db3 100644
--- a/lib/script_entries/crypto.js
+++ b/lib/script_entries/crypto.js
@@ -41,7 +41,7 @@ CryptoString.prototype.encryptString = function(str) {
var data = this.converter.convertToByteArray(str, result);
this.cryptoHash.update(data, data.length);
var hash = this.cryptoHash.finish(false);
- return [this.toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
+ return hash.map(i => this.toHexString(hash.charCodeAt(i))).join("");
};
CryptoString.prototype.toHexString = function(charCode) {