class AesOpenSSL

Methods

static string
encrypt(plaintext $plaintext, password $password, nBits $nBits = 256)

Unicode multi-byte character safe

static string
decrypt(ciphertext $ciphertext, password $password, nBits $nBits = 256)

Decrypt a text encrypted by AES in counter mode of operation

Details

at line 32
static string encrypt(plaintext $plaintext, password $password, nBits $nBits = 256)

Unicode multi-byte character safe

Parameters

plaintext $plaintext source text to be encrypted
password $password the password to use to generate a key
nBits $nBits (ignored - always set to 256)

Return Value

string encrypted text

at line 52
static string decrypt(ciphertext $ciphertext, password $password, nBits $nBits = 256)

Decrypt a text encrypted by AES in counter mode of operation

Parameters

ciphertext $ciphertext source text to be decrypted
password $password the password to use to generate a key
nBits $nBits (ignored - always set to 256)

Return Value

string decrypted text