lua-users home
lua-l archive

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


Hello Luiz,
what I want to do is private/public encrypt/decrypt, and not simple
SHA-1 hashing. Does your code help with that as well?


On Mon, Mar 15, 2010 at 1:56 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> I've found what I was looking for:
>>
>> http://luaforge.net/frs/?group_id=394&release_id=1120
>>
>> it's "very" slow because it's in pure Lua, but it's exactly what I was
>> searching.
>> Maybe some C-backed implementation would be better..
>
> You can combine my lmd5 (which also supports SHA1) with my lbc, which does
> arbitrary precision arithmetic, including modular exponentiation. See
>        http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lmd5
>        http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lbc
>