couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <>
Subject Re: Making CouchDB crypto dependency optional
Date Sun, 17 Jan 2010 22:08:42 GMT
On Sun, Jan 17, 2010 at 1:17 PM, Jonathan <> wrote:
> Devs,
> In the course of trying to get CouchDB running on a SheevaPlug running
> Ubuntu 9.04, I'm having issues getting the Erlang crypto library up and
> running - the armv5te architecture makes binary packages scarce/out-of-date,
> and the limited storage space makes compilation of all the dependencies from
> source difficult.  A grep through the CouchDB 0.10.1 source shows that there
> are 5 actual calls into the crypto library, calling the functions: start/0,
> sha/1, rand_bytes/1, rand_uniform/2, and sha_mac/2.
> I've created a pure-Erlang copy of this API (that attempts to fallback to
> the crypto library if possible) at  The
> random stream isn't cryptographically secure of course, but it should work
> for generating UUIDs...
> I'm not skilled enough to integrate this into my source tree, so I was
> wondering if I could get any pointers on patching it in to a build to test,
> and if the team would be interested in the contribution?

I'm +1 on this. The complications are (a) making sure the licensing is
done correctly. (b)
making sure the sha etc are compatible, so passwords work across

Thank you!


> Thanks very much,
> Jonathan

Chris Anderson

View raw message