Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Replacing crypt() for password login via a digest - looking for stronger alternative

by davebaker (Pilgrim)
on Jun 17, 2021 at 17:27 UTC ( #11133964=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Crypt::SaltedHash;
    
    ...
    # would be very different for me, if this script were to be run a
    # second time, even though it would be processing the same 'Owning 2 
    # boats is 1 boat too many!' desired password.
    
  2. or download this
    use Crypt::SaltedHash;
     
    ...
    my $is_valid = Crypt::SaltedHash->validate( $digest, $asserted_passwor
    +d );
    
    grant_account_access() if ( $is_valid );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133964]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2021-10-17 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (71 votes). Check out past polls.

    Notices?