IRC::Crypt - Perl wrapper for the irc-crypt library
use IRC::Crypt; IRC::Crypt::add_default_key("#chan", "key"); my $crypted = IRC::Crypt::encrypt_message_to_address("#chan", "myNick", "hello, world"); my ($plain, $nick, $tdiff) = IRC::Crypt::decrypt_message($crypted); print $plain;
Simple wrapper for the irc-crypt -library.
Add key to the known key pool.
Delete key from the known key pool.
Add default key for recipient (channel or nick).
Delete default key from a recipient (channel or nick).
Delete all default and known keys.
Delete all default keys.
Delete all known keys.
Encrypt message to address (with default key). Returns the encrypted message or undef on failure.
Encrypt message with key. Returns the encrypted message or undef on failure.
Decrypts message. Returns ( msg, nick, tdiff ) if succesful, ( msg, undef, undef ) otherwise.
Return true if message is in valid crypto message format.
Set default key expand version to n = (1,2,3).
Return current default key expand version.
Jaska Kivelä, <email@example.com>
Copyright (C) 2004 by Jaska Kivelä
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.