Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-25 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found