<?php

namespace Honeybee\Infrastructure\Security\Auth;

class CryptedPasswordHandler implements PasswordHandlerInterface
{
    public function hash($password)
    {
        $options = [
            'cost' => 11,
            'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM)
        ];

        return password_hash($password, PASSWORD_BCRYPT, $options);
    }

    public function verify($password, $challenge)
    {
        return password_verify($password, $challenge);
    }
}

<?php

namespace Honeybee\Infrastructure\Security\Auth;

class CryptedPasswordHandler implements PasswordHandlerInterface
{
    public function hash($password)
    {
        $options = [
            'cost' => 11
        ];

        return password_hash($password, PASSWORD_BCRYPT, $options);
    }

    public function verify($password, $challenge)
    {
        return password_verify($password, $challenge);
    }
}

Fix PHP 7.0.* warning for password_hash deprecated option
Fix PHP 7.0.* warning for password_hash deprecated option

From php.net:
- The salt option has been deprecated as of PHP 7.0.0.
  It is now preferred to simply use the salt that is generated by default

closes #80
