couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes J. Schmidt" <schm...@netzmerk.com>
Subject Re: convert key data to MD5
Date Wed, 27 Apr 2011 15:22:25 GMT
You can find a lib here:
http://pajhome.org.uk/crypt/md5/index.html

g jo
Am Mittwoch, den 27.04.2011, 11:58 -0300 schrieb Fabio Batalha Cunha dos
Santos:
> 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

-- 
Netzmerk GbR
Johannes J. Schmidt

http://netzmerk.com
01525 378 65 21

Am Vierstückenpfuhl 3a
14167 Berlin

Mime
View raw message