[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Encryption in Lua ? Lua encryption library OR C/C++/C#/Java library which can be called from Lua ?
- From: Tom Sutcliffe <tomsci@...>
- Date: Sat, 6 Feb 2021 17:38:37 +0000
Given a clean slate and no specific constraints, I'm a fan of libsodium https://doc.libsodium.org/ which has an approachable API that's hard to mess up (from a security point of view, I mean).
I'm sure there are probably others, but there are some Lua bindings to a subset of the libsodium API in NodeMCU which might be useful, if only as an example:
So whatever solution you go with, I'd recommend one written in C with Lua bindings. Under no circumstances should you be tempted to "roll your own" cryptography. You will get it wrong.
As others have said however, picking the "right" crypto for a particular situation is a bit of a minefield, it's a very complex subject, many solutions have tradeoffs that aren't always obvious or well documented, and very few people truly understand every nuance. Myself included! Given all that, I'm hesitant to provide any specific recommendations.
> On 4 Feb 2021, at 6:07 am, Vishnu exer <firstname.lastname@example.org> wrote:
> Hello everyone,
> My requirement is to do encryption in Lua for a production system.
> For doing this i'm exploring below 2 ways.
> 1) Use encryption library already implemented in Lua
> 2) Use C/C++/C#/Java (or any other language) encryption library which can be called from Lua
> Can you please help me with your inputs on some encryption libraries which can be used in a Lua production system ?