onOffice WP Plugin

SymmetricEncryptionDefault
in package
implements SymmetricEncryption

Interfaces, Classes, Traits and Enums

SymmetricEncryption

Table of Contents

DECRYPTION_ERROR_MESSAGE  = 'Decryption error'
IV_ERROR_MESSAGE  = 'iv is false'
OPEN_SSL_ERROR_MESSAGE  = 'OpenSSL is not installed'
decrypt()  : string
encrypt()  : string

Constants

Methods

decrypt()

public decrypt(string $cipherText, string $key[, string $cipher = 'AES-128-CBC' ]) : string
Parameters
$cipherText : string
$key : string
$cipher : string = 'AES-128-CBC'
Return values
string

encrypt()

public encrypt(string $plainText, string $key[, string $cipher = 'AES-128-CBC' ]) : string
Parameters
$plainText : string
$key : string
$cipher : string = 'AES-128-CBC'
Return values
string

Search results