diff options
| author | cassio <cassiopc@gmail.com> | 2018-09-04 14:31:48 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2018-09-04 14:31:48 +0000 |
| commit | adf0cec07ae3b085ba25e698851fb3c1cb62632b (patch) | |
| tree | 0983afbceafba983c6021ea56d634b36dacbba2e /src | |
| parent | 7ae5d172572441a0bad344a50736a936a678bf27 (diff) | |
| download | boca-adf0cec07ae3b085ba25e698851fb3c1cb62632b.tar.gz boca-adf0cec07ae3b085ba25e698851fb3c1cb62632b.zip | |
bf
Diffstat (limited to 'src')
| -rw-r--r-- | src/hex.php | 3 |
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); |