Hi Marc, If you want to encrypt a database, have you considered SQLCipher (http://www.zetetic.net/code/sqlcipher)? It is free and uses OpenSSL.
Jeff On Thu, Aug 5, 2010 at 11:19 AM, Marc Phillips <rm...@copacetic.net> wrote: > Ger Hobbelt <g...@hobbelt.com> wrote: >> Got some sample data to show which makes the bugger fail? > > sqlite3 /tmp/MyTestsqlite.db > SQLite version 3.3.6 > Enter ".help" for instructions > sqlite> CREATE TABLE test (id INTEGER primary key AUTOINCREMENT, test TEXT); > sqlite> .quit > > encode: > bmem = BIO_new(BIO_s_mem()); > b64 = BIO_push(b64, bmem); > fprintf(stderr,"inbuf = %s, inlen = %d\n",inbuf,inlen); > BIO_write(b64, inbuf, inlen); > BIO_flush(b64); > BIO_get_mem_ptr(b64, &bptr); > memcpy(outbuf, bptr->data, bptr->length); > outbuf[bptr->length] = '\0'; > BIO_free_all(b64); > > The code above yields the following encoded file: > > AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA > AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA > [SNIP] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org