method decryptOpenssl documentation in bbn\Util\Enc

Decrypt string using openSSL module.

function(string $s, string $key = NULL, string $method = NULL, string $password = '') { string $method = null, string $password = '' ): ?string { if (!$key) { $key = self::$salt; } if ($length = @openssl_cipher_iv_length($method ?: self::$method)) { $iv = substr(md5(self::$prefix.$password), 0, $length); try { $res = openssl_decrypt($s, $method ?: self::$method, $key, true, $iv); } catch (\Exception $e){ X::log($e->getMessage(), 'decryptOpenssl'); } if (!empty($res)) { return $res; } } return null; }

Decrypt string using openSSL module. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.