Changeset 932 for trunk/system/libraries/Encrypt.php
- Timestamp:
- 11/01/2007 03:14:45 AM (13 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Encrypt.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Encrypt.php
r931 r932 30 30 * Method: get_key 31 31 * Returns it as MD5 in order to have an exact-length 128 bit key. 32 * mcrypt is sensitive to keys that are not the correct length 32 * mcrypt is sensitive to keys that are not the correct length. 33 33 * 34 34 * Parameters: … … 54 54 /* 55 55 * Method: set_key 56 * Set the encryption key 56 * Set the encryption key. 57 57 * 58 58 * Parameters: … … 96 96 /* 97 97 * Method: decode 98 * Reverses the encode process 98 * Reverses the encode process. 99 99 * 100 100 * Parameters: … … 123 123 /* 124 124 * Method: xor_encode 125 * Takes a plain-text string and key as input and generates an encoded bit-string using XOR 125 * Takes a plain-text string and key as input and generates an encoded bit-string using XOR. 126 126 * 127 127 * Parameters: … … 154 154 /* 155 155 * Method: xor_decode 156 * Takes an encoded string and key as input and generates the plain-text original message 156 * Takes an encoded string and key as input and generates the plain-text original message. 157 157 * 158 158 * Parameters: … … 178 178 /* 179 179 * Method: xor_merge 180 * Takes a string and key as input and computes the difference using XOR 180 * Takes a string and key as input and computes the difference using XOR. 181 181 * 182 182 * Parameters: … … 202 202 /* 203 203 * Method: mcrypt_encode 204 * Encrypt using mcrypt 204 * Encrypt using mcrypt.. 205 205 * 206 206 * Parameters: … … 221 221 /* 222 222 * Method: mcrypt_decode 223 * Decrypt using mcrypt 223 * Decrypt using mcrypt. 224 224 * 225 225 * Parameters: … … 240 240 /* 241 241 * Method: set_cipher 242 * Set the mcrypt Cipher 242 * Set the mcrypt Cipher. 243 243 * 244 244 * Parameters: … … 252 252 /* 253 253 * Method: set_mode 254 * Set the mcrypt Mode 254 * Set the mcrypt Mode. 255 255 * 256 256 * Parameters: … … 264 264 /* 265 265 * Method: get_cipher 266 * Get mcrypt cipher Value 266 * Get mcrypt cipher Value. 267 267 * 268 268 * Returns: … … 281 281 /* 282 282 * Method: get_mode 283 * Get mcrypt Mode Value 283 * Get mcrypt Mode Value. 284 284 * 285 285 * Returns: … … 298 298 /* 299 299 * Method: set_hash 300 * Set the Hash type 300 * Set the Hash type. 301 301 * 302 302 * Parameters: … … 310 310 /* 311 311 * Method: hash 312 * Hash encode a string 312 * Hash encode a string. 313 313 * 314 314 * Parameters:
