CGI::A...::crypt(3pm)
β¨ NAME β¨
CGI::Application::Plugin::Authentication::Driver::Filter::crypt β the crypt Filter, bestie π
. This is a User Contributed Perl Documentation page, and it's literally all about that crypt filter life π₯.
π§ METHODS π§
πΈ filter ( undef, $string [, salt ] )
Okay so this one generates a crypted string, periodt π. The first parameter is always ignored, since there is only one way to use the crypt function β no cap. You can pass in an extra parameter to act as the salt, and that's the whole vibe check π§β¨.
my $filtered = $class->filter(undef, 'foobar'); # mQvbWI43eDCAk
-or-
my $filtered = $class->filter(undef, 'foobar', 'AA'); # AAZk9Aj5/Ue0E
π
check ( undef, $string, $crypted )
This one crypts the string and compares it against the provided crypted string π. The first parameter is always ignored, since there is only one way to use the crypt function β same rule, different method, iykyk π¦.
if ($class->check(undef, 'foobar', 'mQvbWI43eDCAk')) {
# they match
}
π SEE ALSO π
CGI::Application::Plugin::Authentication::Driverperl(1)
Go read those too, bestie ππ.
π AUTHOR π
Cees Hek <ceeshek@gmail.com> β iconic author behavior, honestly π.
π LICENCE AND COPYRIGHT π
Copyright (c) 2005, SiteSuite. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself β¨.
β¨ Cute sign-off: this page is from perl v5.38.2, dated 2024-06-29. Bye bestie, go forth and crypt responsibly ππ«Ά
π¦ where this page comes from
- debian trixie: libcgi-application-plugin-authentication-perl 0.25+~cs0.5-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcgi-application-plugin-authentication-perl 0.25+~cs0.5-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcgi-application-plugin-authentication-perl 0.25+~cs0.5-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms