Kyslik / django-bcrypt by Kyslik

Django like bcrypt for Laravel 5.4
32
1
2
Package Data
Maintainer Username: Kyslik
Maintainer Contact: martin.kiesel@gmail.com (Martin Kiesel)
Package Create Date: 2017-03-06
Package Last Update: 2017-03-07
Language: PHP
License: MIT
Last Refreshed: 2024-11-22 03:17:47
Package Statistics
Total Downloads: 32
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

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