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
- ubuntu stonking: libcrypt-mysql-perl 0.04-7build6 Β· 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