rabbit
Documentation
The rabbit library is an implementation of the Rabbit stream cipher.
Procedure make-context creates an encryption context:
- make-context::procedure
where KEY is a bytevector containing the encryption key.
- destroy-context!::procedure
Destroys the encryption context.
- encode!::procedure
Encrypts the given bytevector. This procedure modifies its argument and returns the modified bytevector.
- decode!::procedure
Decrypts the given bytevector. This procedure modifies its argument and returns the modified bytevector.
Examples
(import (chicken bytevector)
(rabbit))
(let* ((key (string->utf8 "password"))
(data (string->utf8 "important data"))
(ctx (make-context key)))
(encode! ctx data))About this egg
Author
Repository
https://git.linuxposting.xyz/afiw/chicken-rabbit/
Version history
- 3.0
- Ported to CHICKEN 6
- 2.0
- Ported to CHICKEN 5
- 1.0
- Initial release
License
Martin Boesgaard, Mette Vesterager, Thomas Christensen and Erik Zenner; adapted to CHICKEN Scheme by Ivan Raikov; adapted to CHICKEN 6 by Lilianna Smólska.
This library is released in the public domain.