Back to Joomla project (class list)

Class Mcrypt - list of methods

Mcrypt implementation

Extends

Extends

Package: Joomla\CMS\Encrypt\AES
Copyright: (C) 2016 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Encrypt/AES/Mcrypt.php
Project: Joomla

Method Summary

public void
(mixed $mode = 'cbc', mixed $strength = 128)

Set the encryption mode
Parameters
  • string $mode Encryption Mode
  • int $strength Encryption Strength
Returns
  • void
Show source code of this method: setEncryptionMode Source Code

public string
(mixed $plainText, mixed $key, mixed $iv = null)

Encrypt the data
Parameters
  • string $plainText Plaintext data
  • string $key Encryption key
  • string $iv IV for the encryption
Returns
  • string Encrypted data
Show source code of this method: encrypt Source Code

public string
(mixed $cipherText, mixed $key)

Decrypt encrypted data
Parameters
  • string $cipherText Encrypted data
  • string $key Encryptionkey
Returns
  • string Plaintext data
Show source code of this method: decrypt Source Code

public bool
()

Is this adapter supported?
Returns
  • bool
Show source code of this method: isSupported Source Code

public int
()

Get the block size
Returns
  • int
Show source code of this method: getBlockSize Source Code

Properties Summary

protected string
$cipherType
Cypher Type
protected string
$cipherMode
Cypher Mode

Tags Summary

Since
4.0.0
Deprecated
4.0.0
will be removed in 5.0.0