Crypt::MySQL(3pm)

✨ NAME ✨

Crypt::MySQL β€” bestie, it literally emulates the MySQL PASSWORD() function. That's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

okay so here's how you actually use it, no cap:

use Crypt::MySQL qw(password password41);

my $encrypted = password("foobar"); # for MySQL 3.23, 4.0

my $encrypted = password41("foobar"); # for MySQL 4.1 or later.

see how there's two of them?? one for the old-school MySQL eras (password, for MySQL 3.23 and 4.0) and one for the glow-up era (password41, for MySQL 4.1 or later). pick your fighter based on whichever MySQL you're matching against, periodt. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Crypt::MySQL emulates the MySQL PASSWORD() SQL function, and the iconic part is that it does it without libmysqlclient. 🫢

So like… you can compare encrypted passwords without an actual real MySQL environment running anywhere. no whole database server, no giant client library, no drama β€” just the hashing math doing its little thing on your machine. it's giving self-sufficient. it's giving main character energy. ✨


πŸ’– AUTHOR πŸ’–

IKEBE Tomohiro β€” <ikebe@shebang.jp> πŸ‘‘

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. (yes bestie, same terms as Perl itself, that's the legal tea β˜• β€” free to share, free to remix, just keep the terms intact.)


🌈 SEE ALSO 🌈

  • DBD::mysql β€” if you want the full database driver situation πŸ”₯
  • Digest::SHA β€” the SHA crew, doing their digest thing ✨

okay that's the whole page, you ate it, you understood it, I'm so proud of you πŸ’œ

⭐ this was Crypt::MySQL(3pm) β€” User Contributed Perl Documentation, from perl v5.42.3, dated 2026-08-21 ⭐

bye bestie, go hash something responsibly πŸŽ€πŸ¦‹πŸ“

πŸ“¦ where this page comes from