aboutsummaryrefslogtreecommitdiff
path: root/src/hex.php
diff options
context:
space:
mode:
authorcassio <cassiopc@gmail.com>2018-09-04 14:31:48 +0000
committercassio <cassiopc@gmail.com>2018-09-04 14:31:48 +0000
commitadf0cec07ae3b085ba25e698851fb3c1cb62632b (patch)
tree0983afbceafba983c6021ea56d634b36dacbba2e /src/hex.php
parent7ae5d172572441a0bad344a50736a936a678bf27 (diff)
downloadboca-adf0cec07ae3b085ba25e698851fb3c1cb62632b.tar.gz
boca-adf0cec07ae3b085ba25e698851fb3c1cb62632b.zip
bf
Diffstat (limited to 'src/hex.php')
-rw-r--r--src/hex.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hex.php b/src/hex.php
index 2062d69..be7b01e 100644
--- a/src/hex.php
+++ b/src/hex.php
@@ -50,7 +50,8 @@ function decryptData($crypttext,$key,$txt='') {
return "";
}
$crypttext = base64_decode($crypttext);
- $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-cbc'));
+ $iv_size = openssl_cipher_iv_length('aes-256-cbc');
+ $iv = openssl_random_pseudo_bytes($iv_size);
$test1='';
$test2='x';
$clen = strlen($crypttext);