couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Caolan McMahon <caolan.mcma...@gmail.com>
Subject Attachments md5 digest
Date Fri, 30 Sep 2011 16:36:20 GMT
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

Mime
View raw message