From ff40fc4b45296aca2905fd9652020a0896fee54a Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Wed, 24 Aug 2011 18:45:14 -0500 Subject: [PATCH] Fixing encryption key size for the algorithm 1 --- crypto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto.js b/crypto.js index 652f53b2c..4aaca9520 100644 --- a/crypto.js +++ b/crypto.js @@ -543,7 +543,7 @@ var CipherTransformFactory = (function() { key[i++] = 0x54; } var hash = md5(key, 0, i); - return hash.subarray(0, Math.min(key.length, 16)); + return hash.subarray(0, Math.min(encryptionKey.length + 5, 16)); } function buildCipherConstructor(cf, name, num, gen, key) {