lua-users home
lua-l archive

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


> I need to encrypt it using AES and RSA. My server is in Lua and
> it have to decrypt the client's ciphertexts for communicate. But I haven't
> found any libs which permit to do that.

You can try my modified version of LuaCrypto at
http://github.com/mkottman/luacrypto which enables encryption and
decryption using OpenSSL libraries. The reference is available at
http://mkottman.github.com/luacrypto/manual.html#reference

In order to see what ciphers are available, do the following:

require 'crypto'
for i, c in ipairs(crypto.list('ciphers')) do
  print(c)
end