AES: Fixed wrongfully hardcoded $return_format/$input_format (non-security)
authorDan Fuhry <dan@enanocms.org>
Wed, 29 Dec 2010 13:22:39 -0500
changeset 1330 1649f687e69e
parent 1329 61d87ee12e80
child 1331 c7d6317c5e82
AES: Fixed wrongfully hardcoded $return_format/$input_format (non-security)
includes/rijndael.php
--- a/includes/rijndael.php	Fri Nov 19 03:30:35 2010 -0500
+++ b/includes/rijndael.php	Wed Dec 29 13:22:39 2010 -0500
@@ -1492,7 +1492,7 @@
 	
 	public function encrypt($plaintext, $key, $return_format = ENC_HEX)
 	{
-		return $this->encrypt_cbc($plaintext, $key, '00000000000000000000000000000000', ENC_HEX);
+		return $this->encrypt_cbc($plaintext, $key, '00000000000000000000000000000000', $return_format);
 	}
 	
 	/**
@@ -1506,7 +1506,7 @@
 	
 	public function decrypt($cryptext, $key, $input_format = ENC_HEX, $no_cache = false)
 	{
-		return $this->decrypt_cbc($cryptext, $key, '00000000000000000000000000000000', ENC_HEX, $no_cache);
+		return $this->decrypt_cbc($cryptext, $key, '00000000000000000000000000000000', $input_format, $no_cache);
 	}
 	
 	/**