EncrypterInterface
in
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
Return values
stringencrypt()
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