Author: doogie
Date: Fri May 4 21:58:30 2012
New Revision: 1334214
URL:
http://svn.apache.org/viewvc?rev=1334214&view=revLog:
OPTIMIZE: Rename secretKey variable to key; this makes it just like the
rest of the code. The key stored in the database is not only just for
decrypting or encrypting, it's just a key.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityCrypto.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityCrypto.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityCrypto.java?rev=1334214&r1=1334213&r2=1334214&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityCrypto.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityCrypto.java Fri May 4 21:58:30 2012
@@ -107,8 +107,8 @@ public class EntityCrypto {
}
protected Object doDecrypt(String keyName, byte[] encryptedBytes, boolean useOldFunnyKeyHash) throws GeneralException {
- SecretKey decryptKey = this.findKey(keyName, false);
- byte[] decryptedBytes = DesCrypt.decrypt(decryptKey, encryptedBytes);
+ SecretKey key = this.findKey(keyName, false);
+ byte[] decryptedBytes = DesCrypt.decrypt(key, encryptedBytes);
return UtilObject.getObject(decryptedBytes);
}