Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Adjust bcrypt cost to prevent future password hash attacks

by Anonymous Monk
on Jun 12, 2012 at 10:38 UTC ( [id://975746]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    length = 11
      $2a$11$WUHhXETkX0fnYkrqZU3ta.SjqJkrtBHwUGTHlTfGO1BINxczZnBJm
    length = 12
      $2a$12$WUHhXETkX0fnYkrqZU3ta.D8cEIQdqzSrGG5wFTandtdP9Ypqzu0W
    
  2. or download this
    use Time::HiRes 'time';
    use Crypt::Eksblowfish::Bcrypt qw(bcrypt en_base64);
    ...
    my $st = time();
    print bcrypt("password", $settings), "\n";
    printf "took %i milliseconds\n", (time() - $st) * 1000;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-24 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found