kyslik/django-bcrypt

Django like bcrypt for Laravel 5.4
33 1
Install
composer require kyslik/django-bcrypt
Latest Version:0.0.2
PHP:>=7.0
License:MIT
Last Updated:Mar 7, 2017
Links: GitHub  ·  Packagist
Maintainer: Kyslik

Django-bcrypt

This package simply adds prefix that django uses to determine hashing algorithm.

Installation && usage

Composer

Pull this package in through Composer (development/latest version dev-master)

{
    "require": {
        "kyslik/django-bcrypt": "0.0.*"
    }
}
$ composer update

In config/app.php comment out original hashing service provider

Illuminate\Hashing\HashServiceProvider::class,

and add django-bcrypt service provider

Kyslik\Django\Hashing\HashServiceProvider::class,

Examples

Original implementation produces:

$2y$10$.vt2G66F1.DMx4docxG9BO9Jy0HgCYCWIe35AdFAhb/PmX0GcjGoa

This implementation produces:

bcrypt_sha256$$2b$12$xtQ8jSPiQidofTWrA6BtV.TK89Slcm9CYBz8Mfwa96SMCWNC8.ZWC

Related Packages

hisorange/laravel-hash

Replace the BCrypt hashing with native PHP hashing algorithm for Laravel.

8 1
torann/hashids

Laravel package for Hashids

348,856 54
mikemclin/laravel-wp-password

Laravel package that checks and creates WordPress password hashes

3,656,940 86
ksungcaya/phpass-laravel

PHPass Hashing integration to Laravel 5

2,228 3
schuppo/password-strength

This package provides a validator for ensuring strong passwords in Laravel 4 app...

2,763,340 143