src/Leevel/Encryption/Encryption.php
protected function validateCipher(string $cipher): void
    {
        if (!in_array($cipher, openssl_get_cipher_methods(), true)) {
            $e = sprintf('Encrypt cipher `%s` was not found.', $cipher);

            throw new InvalidArgumentException($e);
        }
    }
protected function validateCipher(string $cipher): void
    {
        if (!in_array($cipher, openssl_get_cipher_methods(), true)) {
            $e = sprintf('Encrypt cipher `%s` was not found.', $cipher);

            throw new InvalidArgumentException($e);
        }
    }
校验加密算法.

@param string $cipher