aboutsummaryrefslogtreecommitdiffstats
path: root/hash.js
diff options
context:
space:
mode:
Diffstat (limited to 'hash.js')
-rw-r--r--hash.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/hash.js b/hash.js
index 5f414bd..dc033a2 100644
--- a/hash.js
+++ b/hash.js
@@ -19,11 +19,9 @@ hash:
//}}}
(function() {
- const Crypt = Cc["@mozilla.org/security/hash;1"].createInstance(Ci.nsICryptoHash);
const PR_UINT_MAX = 0xffffffff;
- const Cc = Components.classes;
- const Ci = Components.interfaces;
- const Algos = [
+ let Crypt = Cc["@mozilla.org/security/hash;1"].createInstance(Ci.nsICryptoHash);
+ let Algos = [
["md2", "MD2 Algorithm"],
["md5", "MD5 Algorithm"],
["sha1", "SHA1 Algorithm"],