Bcrypt (Blowfish) hashing tools for password.

author Barry O'Donovan
author The Skilled Team of PHP Developers at Open Solutions
category OSS
package OSS_Crypt
copyright Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
license New BSD License

 Methods

__construct()

__construct($cost) 

Parameters

$cost

generateSalt()

generateSalt() 
Static

hash()

hash($plain) 
Static

Parameters

$plain

verify()

verify($plain, $hash) 
Static

Parameters

$plain

$hash

 Properties

 

<p>The cost for the hashing algorithm Example values showing the cost of 10 and the average on an i7 are: 01: 0.001437 0.000144 02: 0.001441 0.000144 03: 0.002011 0.000201 04: 0.017564 0.001756 05: 0.029720 0.002972 06: 0.055418 0.005542 07: 0.109075 0.010908 08: 0.207278 0.020728 09: 0.407365 0.040737 10: 0.839712 0.083971 11: 1.674868 0.167487 12: 3.336014 0.333601 13: 6.699570 0.669957 14: 15.655678 1.565568 15: 26.771987 2.677199</p>

$_cost : int