Hi Robert
Ok, thanks for clarifying.
Regards
Moritz Post
On Wed, Sep 28, 2011 at 12:00 AM, Robert Newson wrote:
> I'm pretty sure MD5 verification is only available for standalone
> attachments right now.
>
> B.
>
> On 27 September 2011 18:32, Moritz Post wrote:
> > Hi Robert
> >
> > No probl
I'm pretty sure MD5 verification is only available for standalone
attachments right now.
B.
On 27 September 2011 18:32, Moritz Post wrote:
> Hi Robert
>
> No problem. The issue has been solved. So how about validating newly created
> documents?
>
> Greets
> Moritz
>
> On Tue, Sep 27, 2011 at 5:5
Hi Robert
No problem. The issue has been solved. So how about validating newly created
documents?
Greets
Moritz
On Tue, Sep 27, 2011 at 5:52 PM, Robert Newson wrote:
> Heh, I totally missed that you hadn't converted to hex in the middle,
> sorry.
>
> On 27 September 2011 16:18, Moritz Post wr
Heh, I totally missed that you hadn't converted to hex in the middle, sorry.
On 27 September 2011 16:18, Moritz Post wrote:
> Hi Keith
>
> Thanks for the hint. I have actually applied it onto a java implementation
> of the hash generation and it produced a correct hash value. Here is my
> impleme
Hi Keith
Thanks for the hint. I have actually applied it onto a java implementation
of the hash generation and it produced a correct hash value. Here is my
implementation:
MessageDigest md5 = MessageDigest.getInstance("MD5");
byte[] digest = md5.digest("{ \"valid\": \"json\" }".getBytes());
byte[
According to RFC2616 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html),
section 14.15, you need the Base64 encoding of the actual MD5 bits, not the
base64 encoding of the hex encoding of MD5 bits.
In Ruby, after you require the base64 and digest/md5 libraries, you can
generate a Base64 of t
Hi Robert
Thanks for the reply. Using -n does produce a different echo output but it
does not produce a hash consumable by the couchdb:
$ echo -n 4bf3aac171ded1679d3501ccbd3e0d85 | base64
NGJmM2FhYzE3MWRlZDE2NzlkMzUwMWNjYmQzZTBkODU=
$ echo 4bf3aac171ded1679d3501ccbd3e0d85 | base64
NGJmM2FhYzE3MW
try
echo -n 4bf3aac171ded1679d3501ccbd3e0d85 | base64
as echo includes a new line unless you use -n.
B.
On 27 September 2011 14:29, Moritz Post wrote:
> Hallo CouchDB
>
> I am trying to validate the integrity of data i upload to the couchdb.
> Therefore i provide a valid MD5 hash alongside my
Hallo CouchDB
I am trying to validate the integrity of data i upload to the couchdb.
Therefore i provide a valid MD5 hash alongside my PUT request. From what i
have gathered this md5 has to be base64 encoded. My problem is that i am not
able to create a valid hash. All i get is:
{"error":"content