EncryptionManager
in package
This class is used for encryption decryption.
Table of Contents
- decrypt() : string
- It is the function that has been used to decrypt string.
- encrypt() : string
- It is the function that has been used to encrypt string.
Methods
decrypt()
It is the function that has been used to decrypt string.
public
static decrypt(string $ciphertext, string $key) : string
Parameters
- $ciphertext : string
-
denotes ciphertext.
- $key : string
-
is the key.
Return values
string —as whole response of function.
encrypt()
It is the function that has been used to encrypt string.
public
static encrypt(string $plaintext, string $key) : string
Parameters
- $plaintext : string
-
denotes plaintext.
- $key : string
-
is the key.
Return values
string —as whole response of function.