-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I am a novice in Lua and one of my projects uses Kong which in turn uses Lua in which I need to make some changes. I want to do AES encryption/decryption. Wanted to use this library, but couldn't get it to work.
I wanted to try the APIs locally to get familiar with the library. I had downloaded the code from git and managed to do ./configure;make;make install successfully. Now, if I try to do require("crypto") in lua shell, I get the following error:
$ lua
Lua 5.3.5 Copyright (C) 1994-2018 Lua.org, PUC-Rio
require("crypto")
stdin:1: module 'crypto' not found:
no field package.preload['crypto']
no file '/usr/local/share/lua/5.3/crypto.lua'
no file '/usr/local/share/lua/5.3/crypto/init.lua'
no file '/usr/local/lib/lua/5.3/crypto.lua'
no file '/usr/local/lib/lua/5.3/crypto/init.lua'
no file './crypto.lua'
no file './crypto/init.lua'
no file '/Users/amudhan/sandbox/lua/luacrypto:'
stack traceback:
[C]: in function 'require'
stdin:1: in main chunk
[C]: in ?
Can someone please give more explanation as to how to use this library and make it work locally so that I can test if things work fine?