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
