lua-users home
lua-l archive

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


On 3 June 2016 at 08:06, Iwan Budi Kusnanto <ibk@labhijau.net> wrote:
I am trying to do public key encryption with Lua but so far i can't
find any library that support this functionality.
I have tried this lib:
- luaossl
- LuaCrypto (https://github.com/mkottman/luacrypto)

Probably what you are looking for is the high-level 'Sign/Open' API [1] from OpenSSL, example of which is in [2]. Note that this does not give you access to the low-level RSA algorithm.

[1] https://www.openssl.org/docs/manmaster/crypto/EVP_SealInit.html  
[2] https://github.com/mkottman/luacrypto/blob/master/tests/open_seal.lua