1Authen::Passphrase::EggUdsreorpBCloonwtfriisbhu(t3e)d PeArulthDeonc:u:mPeanstsapthiroanse::EggdropBlowfish(3)
2
3
4

NAME

6       Authen::Passphrase::EggdropBlowfish - passphrases using Eggdrop's
7       blowfish.mod
8

SYNOPSIS

10               use Authen::Passphrase::EggdropBlowfish;
11
12               $ppr = Authen::Passphrase::EggdropBlowfish->new(
13                       hash_base64 => "9tpsG/61YqX/");
14
15               $ppr = Authen::Passphrase::EggdropBlowfish->new(
16                       passphrase => "passphrase");
17
18               $hash = $ppr->hash;
19               $hash_base64 = $ppr->hash_base64;
20
21               if($ppr->match($passphrase)) { ...
22

DESCRIPTION

24       An object of this class encapsulates a passphrase hashed using the
25       Blowfish-based algorithm used in Eggdrop's blowfish.mod.  This is a
26       subclass of Authen::Passphrase, and this document assumes that the
27       reader is familiar with the documentation for that class.
28
29       This hash scheme uses no salt, and does not accept a zero-length
30       passphrase.  It uses the passphrase as a Blowfish key to encrypt a
31       standard plaintext block.  The hash is the ciphertext block.  The
32       standard Blowfish key schedule only accepts keys from 8 to 56 bytes
33       long; this algorithm relaxes that requirement and accepts any non-zero
34       length.  Up to 72 bytes of passphrase/key are significant; any more are
35       ignored.
36
37       In Eggdrop the hash is represented as a "+" followed by twelve base 64
38       digits.  The first six digits encode the second half of the hash, and
39       the last six encode the first half.  Within each half the bytes are
40       encoded in reverse order.  The base 64 digits are ".", "/", "0" to "9",
41       "a" to "z", "A" to "Z" (in that order).
42
43       Warning: The hash is small by modern standards, and the lack of salt is
44       a weakness in this scheme.  For a scheme that makes better use of
45       Blowfish see Authen::Passphrase::BlowfishCrypt.
46

CONSTRUCTOR

48       Authen::Passphrase::EggdropBlowfish->new(ATTR => VALUE, ...)
49           Generates a new passphrase recogniser object using the Eggdrop
50           blowfish.mod algorithm.  The following attributes may be given:
51
52           hash
53               The hash, as a string of eight bytes.
54
55           hash_base64
56               The hash, as a string of twelve base 64 digits.
57
58           passphrase
59               A passphrase that will be accepted.
60
61           Either the hash or the passphrase must be given.
62

METHODS

64       $ppr->hash
65           Returns the hash value, as a string of eight bytes.
66
67       $ppr->hash_base64
68           Returns the hash value, as a string of twelve base 64 digits.
69
70       $ppr->match(PASSPHRASE)
71           This method is part of the standard Authen::Passphrase interface.
72

SEE ALSO

74       Authen::Passphrase, Crypt::Eksblowfish::Uklblowfish
75

AUTHOR

77       Andrew Main (Zefram) <zefram@fysh.org>
78
80       Copyright (C) 2006, 2007, 2009, 2010, 2012 Andrew Main (Zefram)
81       <zefram@fysh.org>
82

LICENSE

84       This module is free software; you can redistribute it and/or modify it
85       under the same terms as Perl itself.
86
87
88
89perl v5.32.0                      2020-07A-u2t8hen::Passphrase::EggdropBlowfish(3)
Impressum