Authen::SASL::SCRAM3pm
Scram support for authen::sasl
Usage
# with Authen::SASL::SCRAM installeduse Authen::SASL;my $client = Authen::SASL->new(username => 'user',password => 'pass',mechanism => 'SCRAM-SHA-512 SCRAM-SHA-256 SCRAM-SHA-1 PLAIN');# authenticates using SCRAM SHA hash or PLAINmy $salt = 'your-precious-salt';# $server_key and $stored_key need to be looked up from a user storemy $server_key = 'server-key-stored-for-this-user';my $stored_key = 'key-stored-for-this-user';my $server => Authen::SASL->new(mechanism => 'SCRAM-SHA-1', # selected mechanismcallback => {getsecret => sub {my $username = shift;return ($salt, $stored_key, $server_key, $iterations);},});
Version
0.04
Overview
The "Authen::SASL::SCRAM" distribution adds Authen::SASL support for SCRAM authentication using the mechanisms listed below by wrapping Authen::SCRAM.
- SHA-1 (SCRAM-SHA-1)
- SHA-256 (SCRAM-SHA-256)
- SHA-512 (SCRAM-SHA-512)
The *-PLUS variants are not supported at this time.