[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/crypt/src/Cipher/ -> Crypto.php (summary)

Part of the Joomla Framework Crypt Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 142 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Crypto:: (4 methods):
  decrypt()
  encrypt()
  generateKey()
  isSupported()


Class: Crypto  - X-Ref

Joomla cipher for encryption, decryption and key generation via the php-encryption library.

decrypt($data, Key $key)   X-Ref
Method to decrypt a data string.

param: string  $data  The encrypted string to decrypt.
param: Key     $key   The key object to use for decryption.
return: string  The decrypted data string.

encrypt($data, Key $key)   X-Ref
Method to encrypt a data string.

param: string  $data  The data string to encrypt.
param: Key     $key   The key object to use for encryption.
return: string  The encrypted data string.

generateKey(array $options = [])   X-Ref
Method to generate a new encryption key object.

param: array  $options  Key generation options.
return: Key

isSupported()   X-Ref
Check if the cipher is supported in this environment.

return: boolean



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer