Re: Proposal: Digest

2010-07-20 Thread David Soria Parra
On 2010-07-13, Alex Osborne wrote: > Hi David, > > David Soria Parra writes: >> any feeback on this so far? > >>> A typical example would be: >>> (digest-to-str (digest "hello world" :algorithm "SHA-1")) > > "digest-to-str" is a bit misleading as hexadecimal digits are not the > only way you can

Re: Proposal: Digest

2010-07-12 Thread Alex Osborne
Hi David, David Soria Parra writes: > any feeback on this so far? >> A typical example would be: >> (digest-to-str (digest "hello world" :algorithm "SHA-1")) "digest-to-str" is a bit misleading as hexadecimal digits are not the only way you can represent a digest as a string: base 64 and base 3

Re: Proposal: Digest

2010-07-12 Thread David Soria Parra
any feeback on this so far? On 2010-07-10, David Soria Parra wrote: > Hi, > > I want to propose a wrapper around MessageDigest to provide a simple way > to generate digests. > > The following proposal includes a multimethods digest, which operates either > on strings or on arrays of bytes. > > I

Proposal: Digest

2010-07-10 Thread David Soria Parra
Hi, I want to propose a wrapper around MessageDigest to provide a simple way to generate digests. The following proposal includes a multimethods digest, which operates either on strings or on arrays of bytes. I think digests are usuall used with strings. To expose the byte array api from java's