mervick / aes-everywhere

Aes Everywhere - Cross Language AES 256 Encryption Library (Bash, Powershell, C#, Dart, GoLang, Java, JavaScript, Lua, PHP, Python, Ruby, Swift)
Other
474 stars 169 forks source link

Add lua support (openssl) #25

Closed Shadowsith closed 4 years ago

Shadowsith commented 4 years ago

I've added Lua support for aes-everywhere with the help of the openssl command line program. There are some AES implementations for Lua but all of them are linked to some shared object (.so) libraries and I'm not sure if one of them fit for this project. I also think it is completely adequate for small Lua scripts to use openssl.

The implementation is a static class like them for PHP.

I've also removed a comment in the powershell file which I've forgotten to delete before the first pull request.

mervick commented 4 years ago

I will merge these changes, but I prefer to provide native code for all languages. I agree this is better then nothing but it's just a wrapper of openssl command, If you have a chance to make lua implementation with native code it would be much better.

Shadowsith commented 4 years ago

I agree that a wrapper for openssl is always the last solution. If I'll find a statisfied solution for AES256-CBC for Lua i'll update it.