1379.1. Zend\Crypt\Password\Bcrypt
Bcrypt algorithm using crypt() function of PHP
1379.1.1. Methods
1379.1.1.1. __construct
-
__construct()
Constructor
Parameters: | array|Traversable – |
Throws ExceptionInvalidArgumentException: |
| |
1379.1.1.2. create
-
create()
Bcrypt
Parameters: | string – |
Throws ExceptionRuntimeException: |
| |
Return type: | string |
1379.1.1.3. verify
-
verify()
Verify if a password is correct against an hash value
Parameters: |
|
Return type: | bool
|
1379.1.1.4. setCost
-
setCost()
Set the cost parameter
Parameters: | integer|string – |
Throws ExceptionInvalidArgumentException: |
| |
Return type: | Bcrypt |
1379.1.1.5. getCost
-
getCost()
Get the cost parameter
1379.1.1.6. setSalt
-
setSalt()
Set the salt value
Parameters: | string – |
Throws ExceptionInvalidArgumentException: |
| |
Return type: | Bcrypt |
1379.1.1.7. getSalt
-
getSalt()
Get the salt value
1379.1.1.8. setBackwardCompatibility
-
setBackwardCompatibility()
Set the backward compatibility $2a$ instead of $2y$ for PHP 5.3.7+
1379.1.1.9. getBackwardCompatibility
-
getBackwardCompatibility()
Get the backward compatibility
1379.1.2. Constants
1379.1.2.1. MIN_SALT_SIZE