CGI::A...er::md5(3pm)

πŸ“¦
version 0.25+~cs0.5 Β· 5 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Okay so bestie, this is the manual page for CGI::Application::Plugin::Authentication::Driver::Filter::md5, straight out of the User Contributed Perl Documentation β€” and it is literally the MD5 filter. Main character energy for a tiny module, honestly. ✨

🧚 METHODS 🧚

πŸ’… filter ( (hex base64 binary), $string )

This one generates an MD5 hash of the string in the requested format. By default, hex encoding is used. Slay.

my $filtered = $class->filter('base64', 'foobar'); # OFj2IjCsPJFfMAxmQxLGPw

-or-

my $filtered = $class->filter(undef, 'foobar'); # 3858f62230ac3c915f300c664312c63f

πŸŽ€ check ( (hex base64 binary), $string, $md5 )

This one generates an MD5 hash of the string and compares it against the MD5 string you provided. If no encoding type is specified, the length of the MD5 string gets tested to see what format it is in. No cap.

if ($class->check(undef, 'foobar', '3858f62230ac3c915f300c664312c63f')) {
    # they match
}

🌈 SEE ALSO 🌈

  • CGI::Application::Plugin::Authentication::Driver
  • Digest::MD5
  • perl(1)

πŸ‘‘ AUTHOR πŸ‘‘

Cees Hek <ceeshek@gmail.com> β€” iconic behavior, honestly. 🫢

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.


That's the whole page, bestie! This one is from perl v5.38.2, dated 2024-06-29, and it's the CGI::A...er::md5(3pm) manual page. Go off πŸ’…πŸ’–

πŸ“¦ where this page comes from