Mcrypt
Extends AbstractAES Implements AesInterfaceMcrypt implementation
since |
4.0.0 |
---|---|
deprecated |
4.3 will be removed in 6.0 Will be removed without replacement |
package |
Joomla CMS |
Methods
decrypt
Decrypt encrypted data
decrypt( cipherText, key) :
Arguments
- cipherText
string
Encrypted data- key
string
Encryptionkey
Response
string
Plaintext data
encrypt
Encrypt the data
encrypt( plainText, key, iv = null) :
Arguments
- plainText
string
Plaintext data- key
string
Encryption key- iv
string
IV for the encryption
Response
string
Encrypted data
getBlockSize
Get the block size
getBlockSize() :
Response
int
getZeroPadding
Returns null bytes to append to the string so that it's zero padded to the specified block size
getZeroPadding( string, blockSize) :
Arguments
- string
string
The binary string which will be zero padded- blockSize
int
The block size
Response
string
The zero bytes to append to the string to zero pad it to $blockSize
isSupported
Is this adapter supported?
isSupported() :
Response
bool
resizeKey
Trims or zero-pads a key / IV
resizeKey( key, size) : null|string
Arguments
- key
string
The key or IV to treat- size
int
The block size of the currently used algorithm
Response
null|string
Null if $key is null, treated string of $size byte length otherwise
setEncryptionMode
Set the encryption mode
setEncryptionMode( mode = 'cbc', strength = 128) :
Arguments
- mode
string
Encryption Mode- strength
int
Encryption Strength
Response
void
Properties
cipherType
Cypher Type
Type(s)
string
cipherMode
Cypher Mode
Type(s)
string