summaryrefslogtreecommitdiff
path: root/data/extensions/jid1-KtlZuoiikVfFew@jetpack/lib
diff options
context:
space:
mode:
Diffstat (limited to 'data/extensions/jid1-KtlZuoiikVfFew@jetpack/lib')
-rw-r--r--data/extensions/jid1-KtlZuoiikVfFew@jetpack/lib/js_checker/license_definitions.js14
-rw-r--r--data/extensions/jid1-KtlZuoiikVfFew@jetpack/lib/script_entries/crypto.js5
2 files changed, 18 insertions, 1 deletions
diff --git a/data/extensions/jid1-KtlZuoiikVfFew@jetpack/lib/js_checker/license_definitions.js b/data/extensions/jid1-KtlZuoiikVfFew@jetpack/lib/js_checker/license_definitions.js
index e8aa7f2..26e56a0 100644
--- a/data/extensions/jid1-KtlZuoiikVfFew@jetpack/lib/js_checker/license_definitions.js
+++ b/data/extensions/jid1-KtlZuoiikVfFew@jetpack/lib/js_checker/license_definitions.js
@@ -292,5 +292,19 @@ exports.licenses = {
type: type.SHORT
}
]
+ },
+ 'Unlicense': {
+ licenseName: 'Unlicense',
+ identifier: 'Unlicense',
+ canonicalUrl: [
+ 'http://unlicense.org/UNLICENSE',
+ 'magnet:?xt=urn:btih:5ac446d35272cc2e4e85e4325b146d0b7ca8f50c&dn=unlicense.txt'
+ ],
+ licenseFragments: [
+ {
+ text: 'This is free and unencumbered software released into the public domain.',
+ type: type.SHORT
+ },
+ ]
}
};
diff --git a/data/extensions/jid1-KtlZuoiikVfFew@jetpack/lib/script_entries/crypto.js b/data/extensions/jid1-KtlZuoiikVfFew@jetpack/lib/script_entries/crypto.js
index d8d9c0a..9393e8b 100644
--- a/data/extensions/jid1-KtlZuoiikVfFew@jetpack/lib/script_entries/crypto.js
+++ b/data/extensions/jid1-KtlZuoiikVfFew@jetpack/lib/script_entries/crypto.js
@@ -37,11 +37,14 @@ CryptoString.prototype.init = function(hashAlgorithm, charset) {
};
CryptoString.prototype.encryptString = function(str) {
+ var me = this;
var result = {};
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 Array.from(
+ hash,
+ (c, i) => me.toHexString(hash.charCodeAt(i))).join('');
};
CryptoString.prototype.toHexString = function(charCode) {