in reply to Problems using BerkeleyDB encryption

Actually no. In browsing the SleepyCat documentation see that you have to have either use DB_ENV->set_encrypt or DB->set_encrypt to set the encryption password. You did neither. Also, a browse of BerkeleyDB.xs doesn't show that either of those functions are supported by BerkeleyDB. I'd suggest you add the methods to BerkeleyDB and recompile. Send your modifications to the module author as a patch and hopefully we'll all benefit by that.

Replies are listed 'Best First'.
Re: Re: Problems using BerkeleyDB encryption
by minceme (Initiate) on Mar 26, 2003 at 23:02 UTC

    Thanks, I'll take a look and see what I can do.

    My hopes aren't too high, but I'll fiddle a little with it. If something comes out of it, I'll mail the author a patch, as you suggested.

    -- Vlad

      You know... you could also pay someone to do the XS for you. I'm sure there are plenty of people here who would implement those functions for you for a suitable recompense. I'd think that perhaps a required donation to perlmonks might do it. Or whatever else they happen to want. I'm just thinking that its not a trivial task for you to implement some methods in C if you aren't already a C programmer.