Class OpenSSLHandler

Summary

Fully Qualified Name: CodeIgniter\Encryption\Handlers\OpenSSLHandler
Extends: BaseHandler

Description

Encryption handling for OpenSSL library

Methods

Name Description Defined By
__construct() Initialize OpenSSL, remembering parameters OpenSSLHandler
__get() __get() magic, providing readonly access to some of our properties BaseHandler
__isset() __isset() magic, providing checking for some of our properties BaseHandler
decrypt() Decrypt ciphertext, with optional HMAC and base64 encoding OpenSSLHandler
encrypt() Encrypt plaintext, with optional HMAC and base64 encoding OpenSSLHandler

Method Details

__construct()

Initialize OpenSSL, remembering parameters

Parameter Name Type Description
$config \BaseConfig

Returns:

__get()

__get() magic, providing readonly access to some of our properties

Parameter Name Type Description
$key string Property

Returns: mixed

__isset()

__isset() magic, providing checking for some of our properties

Parameter Name Type Description
$key string Property

Returns: bool

decrypt()

Decrypt ciphertext, with optional HMAC and base64 encoding

Parameter Name Type Description
$data string Encrypted
$params array Over-ridden

Returns: string

encrypt()

Encrypt plaintext, with optional HMAC and base64 encoding

Parameter Name Type Description
$data string Input
$params array Over-ridden

Returns: string

Top