Rex::C...s::MD5(3pm)

✨ NAME ✨

Rex::Commands::MD5 β€” ok so basically it calculates the MD5 sum of files πŸ’… bestie this is the whole vibe


🌸 DESCRIPTION 🌸

So, with this module you can calculate the md5 sum of a file. That's it. That's the whole thing. Iconic, honestly πŸ’–

Lowkey important though: this is just a helper function and it will not be reported. So don't be out here expecting it to show up in your reports, because it will not. Fr fr. 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

use Rex::Commands::MD5;
my $md5 = md5($file);

no cap, that's all it takes ✨


πŸŽ€ EXPORTED FUNCTIONS πŸŽ€

md5($file)

This function will return the MD5 checksum (hexadecimal) for the given file. Like, you hand it a file, it hands you back the hex string. The way that it just... does that πŸ˜­πŸ’–

task "checksum", "server01", sub {
  say md5("/etc/passwd");
};

Obsessed with how clean that is. Chef's kiss. πŸ‘‘


That's the whole page, bestie!! Run it on perl v5.40.1, page dated 2025-10-03, and it lives in the User Contributed Perl Documentation corner of the manual β€” go forth and checksum responsibly πŸŒˆπŸ’œβœ¨

πŸ“¦ where this page comes from