lua-users home
lua-l archive

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


Hi,

Thanks for all the responses, didn't expect to get so many responses :).

For now i am using https://github.com/doujiang24/lua-resty-rsa for my
purpose (i.e. encrypt using public key and decrypt using private key).

I need to modify it to be able to run not inside nginx environment, it
is only a small modification about luajit ffi usage.
I am more than happy to publish my modification if someone need it.

Any comment about lua-resty-rsa library? The developer still marked it
as experimental.

On Fri, Jun 3, 2016 at 10:55 PM, Michal Kottman
<michal.kottman@gmail.com> wrote:
>
> 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.

Thanks Michal, i will check it.


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



-- 
Iwan Budi Kusnanto