1Authen::Passphrase::CleUasre(r3)Contributed Perl DocumenAtuatthieonn::Passphrase::Clear(3)
2
3
4

NAME

6       Authen::Passphrase::Clear - cleartext passphrases
7

SYNOPSIS

9               use Authen::Passphrase::Clear;
10
11               $ppr = Authen::Passphrase::Clear->new("passphrase");
12
13               if($ppr->match($passphrase)) { ...
14
15               $passphrase = $ppr->passphrase;
16
17               $userPassword = $ppr->as_rfc2307;
18

DESCRIPTION

20       An object of this class is a passphrase recogniser that accepts some
21       particular passphrase which it knows.  This is a subclass of
22       Authen::Passphrase, and this document assumes that the reader is
23       familiar with the documentation for that class.
24
25       Warning: Storing a passphrase in cleartext, as this class does, is a
26       very bad idea.  It means that anyone who sees the passphrase file
27       immediately knows all the passphrases.  Do not use this unless you
28       really know what you're doing.
29

CONSTRUCTORS

31       Authen::Passphrase::Clear->new(PASSPHRASE)
32           Returns a passphrase recogniser object that stores the specified
33           passphrase in cleartext and accepts only that passphrase.
34
35       Authen::Passphrase::Clear->from_rfc2307(USERPASSWORD)
36           Generates a cleartext passphrase recogniser from the supplied
37           RFC2307 encoding.  The string must consist of "{CLEARTEXT}" (case
38           insensitive) followed by the passphrase.
39

METHODS

41       $ppr->match(PASSPHRASE)
42       $ppr->passphrase
43       $ppr->as_rfc2307
44           These methods are part of the standard Authen::Passphrase
45           interface.  The "passphrase" method trivially works.
46

SEE ALSO

48       Authen::Passphrase
49

AUTHOR

51       Andrew Main (Zefram) <zefram@fysh.org>
52
54       Copyright (C) 2006, 2007, 2009, 2010, 2012 Andrew Main (Zefram)
55       <zefram@fysh.org>
56

LICENSE

58       This module is free software; you can redistribute it and/or modify it
59       under the same terms as Perl itself.
60
61
62
63perl v5.34.0                      2021-07-22      Authen::Passphrase::Clear(3)
Impressum