incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabio Batalha Cunha dos Santos <fabio.bata...@scielo.org>
Subject convert key data to MD5
Date Wed, 27 Apr 2011 14:58:50 GMT
Hello all,

I'm trying to generate a view where the key will be a MD5 representation of
a specific field content.

Anybody have any idea about any java script library that generates a MD5
from a given string?

I tried the http://plugins.jquery.com/project/md5 plugin. But it is not
working.

This is my view function where the key must be a MD5:

function(doc) {
  if (doc.v706[0]["_"] == 't'){
     for (i in doc.v441){
         emit(doc.v441[i]["_"],1);
     }
  }
}

Thanks in advance.

Regards,
*Fabio Batalha C. Santos*
Colegiado SciELO
www.scielo.org
FAPESP - CNPq - BIREME - FapUNIFESP

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message