Authen...::Clear(3pm)
π Authen::Passphrase::Clear π
okay bestie, so this is the manual page for Authen::Passphrase::Clear, from the User Contributed Perl Documentation section of the perl manpages (it's a 3pm page, if you're keeping score). And the vibe is... well. It stores passphrases in cleartext. Yes really. We'll get there. π«Ά
β¨ NAME β¨
Authen::Passphrase::Clear β cleartext passphrases π
πΈ SYNOPSIS πΈ
use Authen::Passphrase::Clear;
$ppr = Authen::Passphrase::Clear->new("passphrase");
if($ppr->match($passphrase)) { ...
$passphrase = $ppr->passphrase;
$userPassword = $ppr->as_rfc2307;
π¦ DESCRIPTION π¦
So, an object of this class is a passphrase recogniser that accepts one specific passphrase β the one it already knows. That's it. That's the whole personality.
It's a subclass of Authen::Passphrase, and this doc just assumes you've already read up on that class, because the lore runs deep. π
β οΈ WARNING β οΈ Storing a passphrase in cleartext, which is literally what this class does, is a very bad idea. Like, no shade, but it means anyone who sees the passphrase file immediately knows all the passphrases. Instantly. Zero effort. Do not use this unless you genuinely, truly, for-real know what you're doing. π
π CONSTRUCTORS π
Authen::Passphrase::Clear->new(PASSPHRASE)β returns a passphrase recogniser object that stores the passphrase you handed it in cleartext, and accepts only that passphrase. One passphrase, one bestie, no exceptions. β¨Authen::Passphrase::Clear->from_rfc2307(USERPASSWORD)β builds a cleartext passphrase recogniser out of the RFC2307 encoding you supply π§. The string has to start with"{CLEARTEXT}"(case insensitive, we're flexible like that π ) followed by the passphrase itself.
π METHODS π
$ppr->match(PASSPHRASE)$ppr->passphrase$ppr->as_rfc2307
These are all part of the standard Authen::Passphrase interface, so they're just doing their regular duties. And the passphrase method? It trivially works. Of course it does. It knows the passphrase. It is the passphrase. main character energy, honestly. π
π SEE ALSO π
Authen::Passphrase
π AUTHOR π
Andrew Main (Zefram) <zefram@fysh.org>
πΈ COPYRIGHT πΈ
Copyright (C) 2006, 2007, 2009, 2010, 2012 Andrew Main (Zefram) <zefram@fysh.org>
π LICENSE π
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay. β¨
this chapter of the lore was brought to you by perl v5.40.1, dated 2026-05-06 π β ily, go read the Authen::Passphrase docs before you do anything chaotic π
π¦ where this page comes from
- ubuntu stonking: libauthen-passphrase-perl 0.009-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms