function decrypt in Encrypt 7
Same name and namespace in other branches
- 6 encrypt.module \decrypt()
- 7.3 encrypt.module \decrypt()
- 7.2 encrypt.module \decrypt()
Decrypt
Decrypt text.
Parameters
$text: Text to decrypt
$options: Array of options for decryption
$method: String name of method to use. Uses setting default if NULL
Return value
Decrypted text
3 calls to decrypt()
- EncryptEncryptDecryptTest::testBasicEncryptDecrypt in ./
encrypt.test - Test encryption and decryption with the "Basic" method.
- EncryptEncryptDecryptTest::testMCryptEncryptDecrypt in ./
encrypt.test - Test encryption and decryption with the "MCrypt" method.
- EncryptEncryptDecryptTest::testNoneEncryptDecrypt in ./
encrypt.test - Test encryption and decryption with the "None" method.
4 string references to 'decrypt'
- encrypt_encrypt_basic in includes/
encrypt.encrypt.inc - Callback for Encrypt implementation: default
- encrypt_encrypt_mcrypt_rij_256 in includes/
encrypt.encrypt.inc - Callback for Encrypt implementation: Mcrypt
- encrypt_encrypt_none in includes/
encrypt.encrypt.inc - Callback for Encrypt implementation: none
- _encrypt_decrypt in includes/
encrypt.crypt.inc - Private Encrypt and Decrypt
File
- ./
encrypt.module, line 166 - Main Encrypt Drupal File
Code
function decrypt($text = '', $options = array(), $method = NULL, $key_name = NULL) {
encrypt_initialize();
return _encrypt_decrypt('decrypt', $text, $options, $method, $key_name);
}