The TclOTR package implements the Off-the-record messaging protocol
(https://otr.cypherpunks.ca/).

This package requires Tcl 8.5 or newer because it uses an
arbitrary precision integers. Also, the base64, sha1, sha256, aes, asn
and math::bignum packages are required, they all are bundled with the
Tcllib collection.

For Windows this package also requires the Memchan package. Its [random]
channel is used as a PRNG.

To actually use OTR you'll need a 1024 bit DSA private key (OTR protocol
supports only 1024 bit keys). There are two ways of making it work:

1) You can generate a new key directly using [::otr::key::generate 1024 160]
(only 1024 bit keys can be used with OTR).

2) You can import an existing key stored in PEM format via
[::otr::key::readPEM otr.private.key]. To generate it you can use
OpenSSL:

openssl dsaparam -out dsaparam.pem 1024
openssl gendsa -out otr.private.key dsaparam.pem

Happy hacking!
