[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Luacrypto does not seem to successfully install on two platforms.
- From: Petite Abeille <petite.abeille@...>
- Date: Tue, 21 Jul 2009 18:47:12 +0200
On Jul 21, 2009, at 10:39 AM, Jacques Chester wrote:
As part of a project I am developing I am planning to use SHA1 HMAC
digests.
If this is not performance critical, there is also a SHA1
implementation in pure Lua:
http://luaforge.net/projects/sha1-rsa/
FWIW, here is an HMAC-SHA1 implementation:
http://dev.alt.textdrive.com/browser/HTTP/HMAC.lua
Usage example:
local HMAC = require( 'HMAC' )
print( HMAC( 'Jefe', 'what do ya want for nothing?' ) )
> 'effcdf6ae5eb2fa2d27416d5f184df9c259a7c79'
This uses Klaus Ripke's excellent slncrypto library:
http://luaforge.net/projects/sln/
Cheers,
--
PA.
http://alt.textdrive.com/nanoki/