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.
http://people.ssh.fi/tri/irchat/index.html http://www.kivela.net/jaska/projects/perl-IRC-Crypt/
Jaska Kivelä, <jaska@kivela.net>
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.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Kivelä,'. Assuming CP1252
To install IRC::Crypt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IRC::Crypt
CPAN shell
perl -MCPAN -e shell install IRC::Crypt
For more information on module installation, please visit the detailed CPAN module installation guide.