Class crypt

Description

Crypt class to perform the majority of encryption and decryption functions within ILance.

  • author: ILance
  • version: $Revision: 1.0.0 $

Located in /api/class.crypt.inc.php (line 23)


	
			
Method Summary
crypt crypt ()
string decrypt ([string $txt = ''], [string $key = ''])
string encrypt ([string $txt = ''], [string $key = ''])
string key_ed ([string $txt = ''], [string $encrypt_key = ''])
string three_layer_decrypt ([string $text_encrypted = ''], [string $key1 = ''], [string $key2 = ''], [string $key3 = ''])
string three_layer_encrypt ([string $text_plain = ''], [string $key1 = ''], [string $key2 = ''], [string $key3 = ''])
Methods
Constructor crypt (line 28)

Constructor

crypt crypt ()
decrypt (line 94)

Function to process and decrypt a text string along with an encryption key

  • return: Returns unencrypted text
string decrypt ([string $txt = ''], [string $key = ''])
  • string $txt: text
  • string $key: encryption key
encrypt (line 66)

Function to process and encrypt a text string along with an encryption key

  • return: Returns encrypted text
string encrypt ([string $txt = ''], [string $key = ''])
  • string $txt: text
  • string $key: encryption key
key_ed (line 40)

Callback function to handle characters that should be encrypted along with an encryption key

  • return: Returns encrypted text
string key_ed ([string $txt = ''], [string $encrypt_key = ''])
  • string $txt: text
  • string $encrypt_key: encryption key
three_layer_decrypt (line 134)

Function to process and decrypt a text string based on 3 primary encryption keys

  • return: Returns decrypted text
string three_layer_decrypt ([string $text_encrypted = ''], [string $key1 = ''], [string $key2 = ''], [string $key3 = ''])
  • string $text_encrypted: text plain
  • string $key1: encryption key 1
  • string $key2: encryption key 2
  • string $key3: encryption key 3
three_layer_encrypt (line 119)

Function to process and encrypt a text string based on 3 primary encryption keys

  • return: Returns encrypted text
string three_layer_encrypt ([string $text_plain = ''], [string $key1 = ''], [string $key2 = ''], [string $key3 = ''])
  • string $text_plain: text plain
  • string $key1: encryption key 1
  • string $key2: encryption key 2
  • string $key3: encryption key 3

Documentation generated on Mon, 08 Aug 2011 17:40:53 +0200 by phpDocumentor 1.4.1