PHP: encrypt/decrypt
PHP: encrypt/decrypt
- Started
- Last post
- 3 Responses
- cosmo
This warning shows up when i try to encrypt values, but it returns the proper encrypted value. Looked it up on php manual, but no help. Anyone know why this would show up?
"Warning: mcrypt_encrypt(): Size of key is too large for this algorithm"
- Solid0
/* The next step is to ensure that your key is not too big and truncate it if necessary. */
$max_key_size = mcrypt_enc_get_key_size($mod);
$key = substr($key,0,$max_key_size);
- cosmo0
hmm...did the same fucking thing. argghhhhhhhhh!