Skip to content

Commit be5b2a7

Browse files
Chad Meyersbfentiman
authored andcommitted
Updated Exception Message (#6)
* Update cryptor.php * Simple Assert test Added a simple assert test to prove it works. Signed-off-by: Michael Soileau <webart.video@gmail.com> * Update cryptor.php updated Exception message to match
1 parent ade46cb commit be5b2a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cryptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function encryptString($in, $key, $fmt = null)
7676
// Build an initialisation vector
7777
$iv = openssl_random_pseudo_bytes($this->iv_num_bytes, $isStrongCrypto);
7878
if (!$isStrongCrypto) {
79-
throw new \Exception("Not a strong key");
79+
throw new \Exception("Cryptor::encryptString() - Not a strong key");
8080
}
8181

8282
// Hash the key

0 commit comments

Comments
 (0)