Look up the documentation of the following OpenSSL functions (Yes this
is a bit roundabout for encoding a single string, but this is all
OpenSSL exposes):
BIO_f_base64
BIO_s_mem
A better way is to use a non-OpenSSL library to Base64 (or Base32 or
Base85 or Base16 or whatever you like) the binary data directly, without
the gratuitous insertion of newlines and "=" sign padding done
by the file-oriented BIO_f_base64.
An even better way is to use the SQL syntax for explicitly specifying
non-textual bytes in field values (ask an SQL expert or read the
documentation that came with your database development tools).
On 3/28/2013 7:32 PM, Jevin Sonut wrote:
Can anyone PLZ tell me how can one do base64 encode/decode on OPENSSL
PLz provide a link where can learn how to use the base64 in openssl
On Thu, Mar 28, 2013 at 10:14 PM, Salz, Rich <[email protected]
<mailto:[email protected]>> wrote:
Encrypted data is not a text string, it is an array of binary
octets. You will have to do something like base64 encode/decode
when treating it as a text string.____
Enjoy
Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S. http://www.wisemo.com
Transformervej 29, 2730 Herlev, Denmark. Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]