Yes,

I want and must base64 encode the data. Have you seen any examples of doing this with the binary results from encrypting.

David Schwartz wrote:
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                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to