You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Caolan McMahon <ca...@gmail.com> on 2011/09/30 18:36:20 UTC

Attachments md5 digest

I'm attempting to re-create the "digest" property added to
_attachments using only JavaScript. This is because its available to
validate_doc_update functions and I want to check the attachment
contains some predefined content.

The problem is, I can't seem to recreate the digest value using the
content of the attachment, either using the raw value or the base64.
Does anyone with knowledge of this process in CouchDB have any advice
on how I can match the md5 hash CouchDB is generating?

Thanks,

Caolan