POE::Component::Server::IRC::Common - provides a set of common functions for the POE::Component::Server::IRC suite.
use strict; use warnings; use POE::Component::Server::IRC::Common qw( :ALL ); my $passwd = mkpasswd( 'moocow' );
POE::Component::IRC::Common provides a set of common functions for the POE::Component::Server::IRC suite.
mkpasswd
Takes one mandatory argument a plain string to 'encrypt'. If no further options are specified it uses crypt to generate the password. Specifying 'md5' option uses Crypt::PasswdMD5's unix_md5_crypt function to generate the password. Specifying 'apache' uses Crypt::PasswdMD5 apache_md5_crypt function to generate the password. Specifying 'bcrypt' option uses Crypt::Eksblowfish::Bcrypt to generate the password (recommended).
crypt
unix_md5_crypt
apache_md5_crypt
my $passwd = mkpasswd( 'moocow' ); # vanilla crypt() my $passwd = mkpasswd( 'moocow', md5 => 1 ) # unix_md5_crypt() my $passwd = mkpasswd( 'moocow', apache => 1 ) # apache_md5_crypt() my $passwd = mkpasswd( 'moocow', bcrypt => 1 ) # bcrypt() # recommended
chkpasswd
Takes two mandatory arguments, a password string and something to check that password against. The function first tries md5 comparisons (UNIX and Apache) and bcrypt, then crypt and finally plain-text password check.
Chris 'BinGOs' Williams
Copyright © Chris Williams
This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details.
POE::Component::Server::IRC Crypt::PasswdMD5 Crypt::Eksblowfish::Bcrypt Mojolicious::Plugin::Bcrypt
To install POE::Component::Server::IRC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::Server::IRC
CPAN shell
perl -MCPAN -e shell install POE::Component::Server::IRC
For more information on module installation, please visit the detailed CPAN module installation guide.