Code Monkey home page Code Monkey logo

luacrypto's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

luacrypto's Issues

How to make this work?

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?

Can successfully compile and install, but compiled module doesn't work

I can compile and install lycrypto.so, but when I try to require it, I get this:

> lcrypto = require 'lcrypto'
error loading module 'lcrypto' from file '/usr/local/lib/lua/5.1/lcrypto.so':
        /usr/local/lib/lua/5.1/lcrypto.so: undefined symbol: luaopen_lcrypto
stack traceback:
        [C]: ?
        [C]: in function 'require'
        stdin:1: in main chunk
        [C]: ?

Any idea what might be causing this? I'm on Debian Wheezy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.