You are here

function decrypt in Encrypt 7.3

Same name and namespace in other branches
  1. 6 encrypt.module \decrypt()
  2. 7 encrypt.module \decrypt()
  3. 7.2 encrypt.module \decrypt()

Decrypt text.

Parameters

string $text: Text to decrypt

array $options: Array of options for decryption

mixed $method: String name of method to use. Uses setting default if NULL

mixed $key_provider: String name of provider to use. Uses setting default if NULL

mixed $config: A configuration to use. Uses the default configuration if NULL.

Return value

string Decrypted text

6 calls to decrypt()
EncryptConfigTest::testConfigEncrypt in ./encrypt.test
Test an encryption with just a configuration.
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.
EncryptPortability::testDecryptingRandomValue in ./encrypt.test
Test off-the-cuff decrypting of a value using decrypt() with some text and paramters.

... See full list

4 string references to 'decrypt'
encrypt_encryption_methods_basic in plugins/encryption_methods/default.inc
Callback for Encrypt implementation: default.
_encrypt_decrypt in includes/encrypt.encrypt.inc
Private internal function to Encrypt and Decrypt text.
_encrypt_encryption_methods_mcrypt_rij_256 in plugins/encryption_methods/mcrypt_rij_256.inc
Callback for Encrypt implementation: Mcrypt.
_encrypt_encryption_methods_phpseclib in plugins/encryption_methods/phpseclib.inc
Callback for Encrypt implementation: phpseclib.

File

./encrypt.module, line 610
Main Encrypt Drupal File

Code

function decrypt($text = '', $options = array(), $method = NULL, $key_provider = NULL, $config = NULL) {
  module_load_include('inc', 'encrypt', 'includes/encrypt.encrypt');
  return _encrypt_decrypt('decrypt', $text, $options, $method, $key_provider, $config);
}