Skip to content
/ luazen Public
forked from philanc/luazen

Compression, encoding and crypto for Lua: LZMA, Chacha20, curve25519, ed25519 signature, Blake2b, Argon2i key derivation and more...

License

Notifications You must be signed in to change notification settings

bel2125/luazen

 
 

Repository files navigation

luazen

Luazen is a small library with various compression, encoding and cryptographic functions for Lua: LZMA, base64 and base58, Chacha20, curve25519 key exchange, ed25519 signature, Blake2b hash, Argon2i key derivation and more...

All the functions work on strings, there is no stream or chunked complex interface. All the code is included. No external dependencies.

Recent changes

October-2020 version 0.16

  • lzma() produces now a compressed format compatible with linux lzma and unlzma commands. So a string compressed by luazen.lzma() can now be uncompressed by the linux unlzma command.

  • The unlzma() luazen function can now uncompress data compressed either in the former luazen format ("legacy") or in the new "standard" format. So user programs will be able to transparently uncompress data compressed with older luazen versions.

  • The file 'lzma_std_fmt.lua' contains more details about both formats and Lua functions to detect the LZMA compression format and convert compressed strings from the legacy to the standard format. This may be useful only for programs still using former luazen ve