chickadee » rabbit

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 blob containing the encryption key.

destroy-context!:procedure

Destroys the encryption context.

encode!:procedure

Encrypts the given blob. This procedure modifies its argument and returns the modified blob.

decode!:procedure

Decrypts the given blob. This procedure modifies its argument and returns the modified blob.

Examples

(import rabbit)
(let* ((key (string->blob "password"))
       (data (string->blob "important data"))
       (ctx (make-context key)))
  (encode! ctx data))

About this egg

Author

Ivan Raikov

Repository

https://github.com/iraikov/chicken-rabbit

Version history

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.

This library is released in the public domain.

Contents »