[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
Joomla! Content Management System
Copyright: | (C) 2017 Open Source Matters, Inc. |
License: | GNU General Public License version 2 or later; see LICENSE.txt |
File Size: | 142 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 2 times |
Includes or requires: | 0 files |
SodiumCipher:: (5 methods):
decrypt()
encrypt()
generateKey()
isSupported()
setNonce()
Class: SodiumCipher - X-Ref
JCrypt cipher for sodium algorithm encryption, decryption and key generation.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 = array() 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 |
setNonce($nonce) X-Ref |
Set the nonce to use for encrypting/decrypting messages param: string $nonce The message nonce return: void |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |