Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

README.md

Luarabbit

Luarabbit is a small Lua extension library including the Rabbit stream cipher.

It works with Lua versions 5.1 to 5.3.

Rabbit is a very fast stream cipher (faster and much stronger than rc4). It was one of the four eSTREAM finalists in 2008. See the rabbit presentation pages at eSTREAM and at ECRYPT II. Rabbit was also specified in RFC 4503

API

rabbit(str, key, iv)
	encrypt (or decrypt, as rabbit is symmetric) string str with 
	key string key and initial value string iv.
	key must be 16 bytes. iv must be 8 bytes
	return the encrypted string (same length as str)
	or nil, error msg if the key or iv lengths are not correct
	-- for more information and references on rabbit, see the comment 
	at the top of src/rabbit.c

encode(str, key, iv)
decode(str, key, iv)
	encode and decode are defined as aliases of the rabbit() 
	symmetrical function.

License

luarabbit is distributed under the terms of the MIT License.

The luarabbit library includes the rabbit implementation by Cryptico A/S, placed in the public domain since 2008.

Copyright (c) 2020 Phil Leblanc

About

A Lua wrapper for the Rabbit stream cipher

Resources

License

Packages

No packages published
You can’t perform that action at this time.