diff --git a/libraries/joomla/utilities/simplecrypt.php b/libraries/joomla/utilities/simplecrypt.php
index <HASH>..<HASH> 100644
--- a/libraries/joomla/utilities/simplecrypt.php
+++ b/libraries/joomla/utilities/simplecrypt.php
@@ -43,10 +43,7 @@ class JSimpleCrypt
 		}
 
 		// Build the JCryptKey object.
-		$key = new JCryptKey;
-		$key->private = $privateKey;
-		$key->public  = $privateKey;
-		$key->type    = 'simple';
+		$key = new JCryptKey('simple', $privateKey, $privateKey);
 
 		// Setup the JCrypt object.
 		$this->_crypt = new JCrypt(new JCryptCipherSimple, $key);
Fix minor problem in JSimpleCrypt.