Authen...ceptAll(3pm)

πŸ’– Authen::Passphrase::AcceptAll β€” accept any passphrase πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation for Authen::Passphrase::AcceptAll, and it is genuinely the most unhinged little module in the whole passphrase family. no cap. let's get into it 🫢


✨ SYNOPSIS ✨

use Authen::Passphrase::AcceptAll;

$ppr = Authen::Passphrase::AcceptAll->new;

$ppr = Authen::Passphrase::AcceptAll
        ->from_crypt("");

$ppr = Authen::Passphrase::AcceptAll
        ->from_rfc2307("{CRYPT}");

if($ppr->match($passphrase)) { ...

$passphrase = $ppr->passphrase;

$passwd = $ppr->as_crypt;
$userPassword = $ppr->as_rfc2307;

like yes, the whole point is that match is just always gonna say yes πŸŽ€


🌸 DESCRIPTION 🌸

so an object of this class is a passphrase recogniser that accepts any passphrase whatsoever. literally any. it doesn't care. it's giving golden retriever energy πŸ¦‹

this is a subclass of Authen::Passphrase, and this doc is assuming you already know your way around the documentation for that class, bestie. do your homework πŸ’…

and okay, real talk, this type of passphrase recogniser is obviously of no use at all in controlling access to any resource. like none. zero. it is the opposite of a lock πŸ”“

its actual use? to permit a resource to be public in a system that expects some type of passphrase access control. so it's a vibe-check pass β€” you look like you have auth, but you're actually wide open. iykyk πŸ‘‘


πŸŽ€ CONSTRUCTORS πŸŽ€

  • Authen::Passphrase::AcceptAll->new β€” returns an accept-all passphrase recogniser object. and here's the cute part: the same object is returned from each call. it's monogamous like that πŸ’–
  • Authen::Passphrase::AcceptAll->from_crypt("") β€” returns an accept-all passphrase recogniser object, and yes, the same object comes back every single call. the argument must be the empty string β€” don't get creative, the empty string is the slay 🌈
  • Authen::Passphrase::AcceptAll->from_rfc2307(USERPASSWORD) β€” generates a new accept-all passphrase recogniser object from an RFC 2307 string. that string must consist of "{CRYPT}" (case insensitive, periodt) followed by an acceptable crypt string ✨

πŸ’… METHODS πŸ’…

  • $ppr->match(PASSPHRASE)
  • $ppr->passphrase
  • $ppr->as_crypt
  • $ppr->as_rfc2307

so these are all part of the standard Authen::Passphrase interface, no surprise twists. the "match" method always returns true, and the "passphrase" method returns the empty string β€” which is, iconic detail, the shortest of the infinite number of correct passphrases 😭 infinite correct passphrases. infinity. bestie that's not a password that's a whole multiverse πŸ¦‹


πŸ¦‹ SEE ALSO πŸ¦‹

  • Authen::Passphrase

🌟 AUTHOR 🌟

Andrew Main (Zefram) <zefram@fysh.org> β€” thank you for this blessed little chaos module πŸ™


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. go off, honestly 🫢


ok that's the whole page, no notes, every single flag and string accounted for, we ate and left zero crumbs πŸ“

this was Authen...ceptAll(3pm) from perl v5.40.1, dated 2026-05-06 β€” thanks for coming to my ted talk, ily, bye πŸ’–

πŸ“¦ where this page comes from