somesocks / lua-lockbox

A collection of cryptographic primitives written in pure Lua
MIT License
362 stars 75 forks source link

Bitwise compat #5

Closed tst2005 closed 9 years ago

tst2005 commented 9 years ago

I tried to add a generic bitwise module support. Lua 5.1 doesn't have native bit module Lua 5.2 have one named bit32 LuaJIT have one named bit (similar to bit32 but not exactly the same)

I also found a 100% lua implementation, theoricaly allowing support for all version (mostly Lua 5.1). See https://github.com/davidm/lua-bit-numberlua I decide to create a lockbox.util.bit to use only one API internaly.

Current status :

somesocks commented 9 years ago

LGTM