lua-users home
lua-l archive

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


Works like a charm. Awesome !

On Wed, Mar 17, 2010 at 3:22 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> But this
>> http://codepad.org/JJcm3J5b
>> (which should reproduce the sha1-rsa library using bc)  is not working
>> (the decrypted message is not the one I'm expecting to see).
>
> public, private and modulus are all numbers in hex. So you need to convert
> them to bc numbers but cannot use string2bc; you need hex2bc. You also seem
> to need bc2string. The complete program is attached and seems to work.
> (There was a small bug in string2bc.)
>