CodeIgniter v4.5 API

EncrypterInterface

CodeIgniter Encryption Handler

Provides two-way keyed encryption

Table of Contents

Methods

decrypt()  : string
Decrypt - convert ciphertext into plaintext
encrypt()  : string
Encrypt - convert plaintext into ciphertext

Methods

decrypt()

Decrypt - convert ciphertext into plaintext

public decrypt(string $data[, array<string|int, mixed>|string|null $params = null ]) : string
Parameters
$data : string

Encrypted data

$params : array<string|int, mixed>|string|null = null

Overridden parameters, specifically the key

Tags
throws
EncryptionException
Return values
string

encrypt()

Encrypt - convert plaintext into ciphertext

public encrypt(string $data[, array<string|int, mixed>|string|null $params = null ]) : string
Parameters
$data : string

Input data

$params : array<string|int, mixed>|string|null = null

Overridden parameters, specifically the key

Tags
throws
EncryptionException
Return values
string

        
On this page

Search results