]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/crypto/class_CryptoHelper.php
Assertion added to crypto helper (CAPTCHA might still be broken, why?)
[shipsimu.git] / inc / classes / main / crypto / class_CryptoHelper.php
index 4583bd7de738db4794f39589d912af7202e322e6..1ccdaae901b0712c8644e6001b8de53598cd050d 100644 (file)
@@ -50,12 +50,6 @@ class CryptoHelper extends BaseFrameworkSystem implements Cryptable {
                // Call parent constructor
                parent::__construct(__CLASS__);
 
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Set part description
-               $this->setObjectDescription("Cryptographical helper");
-
-               // Create unique ID number
-               $this->generateUniqueId();
-
                // Clean up a little
                $this->removeNumberFormaters();
                $this->removeSystemArray();
                // Clean up a little
                $this->removeNumberFormaters();
                $this->removeSystemArray();
@@ -247,6 +241,11 @@ class CryptoHelper extends BaseFrameworkSystem implements Cryptable {
 
                // Get the real string out
                $strArray = explode("|", $garbageString);
 
                // Get the real string out
                $strArray = explode("|", $garbageString);
+
+               // Does the element count match?
+               assert(count($strArray) == 3);
+
+               // Decode the string
                $str = base64_decode($strArray[1]);
 
                // Trim trailing nulls away
                $str = base64_decode($strArray[1]);
 
                // Trim trailing nulls away