lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Tue, 21 Jul 2009 16:55:27 +0800
Jacques Chester <> wrote:

> On 21/07/2009, at 4:44 PM, Rob Kendrick wrote:
> > Firstly, if all you are planning on using from LuaCrypto is SHA1,
> > then it may be a bit of a heavy-weight solution; writing your own
> > binding to
> > an off-the-shelf SHA1 implementation should take about 10 minutes.
> >
> > Secondly, I assume you know that SHA1 is no longer safe to use in
> > new designs :)
> I only want to use SHA1 / luacrypto for a prototype with an eye
> to writing a wrapper for the Skein hashing algorithm at some future
> point.

In that case I strongly recommend just writing your own that exports an
interface that pleases you.  And you demonstrate good taste with
Skein; we're already using that in some of our projects.  It solves
half our cryptography needs.