Inject an BcryptHasher instance on the database class. Start using mcrypt_create_iv for salt generation.