> Has anyone seen problems encrypting credit card numbers with BlowFish. > When encrypting with a 32 char or a 56 char key the there are a number > of values that are not encrypting and thus decrypting all of the > characters.
This sounds like a classic example of bugs caused by the "everything is a C-style string" mindset. No, not everything is a string. Some things are binary data. Some things have their length stored separately and aren't terminated by a zero byte. Some things have zeroes inside them, and 'strlen' won't give you the data length. Perhaps you want to base64 encode the encrypted data? DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [email protected]
