How has support for password hashing (Crypt::Argon2, bcrypt) changed across recent Perl versions?

Perl has evolved significantly in its support for password hashing techniques, incorporating modern algorithms such as Crypt::Argon2 and bcrypt. These advancements enhance security and help developers implement robust password management.
password hashing, Crypt::Argon2, bcrypt, Perl, security, password management

# Example usage of Crypt::Argon2 and bcrypt in Perl

use Crypt::Argon2;
use Crypt::Bcrypt;

# Hashing a password using Argon2
my $argon2 = Crypt::Argon2->new();
my $password = 'super_secret_password';
my $hashed_password_argon2 = $argon2->encode($password);

print "Argon2 Hashed Password: $hashed_password_argon2\n";

# Hashing a password using bcrypt
my $bcrypt_cost = 12;
my $hashed_password_bcrypt = Crypt::Bcrypt::bcrypt($password, $bcrypt_cost);

print "Bcrypt Hashed Password: $hashed_password_bcrypt\n";
    

password hashing Crypt::Argon2 bcrypt Perl security password management