Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyslik/django-bcrypt
Laravel package implementing django like bcrypt
https://github.com/kyslik/django-bcrypt
django-like laravel-5-package package php
Last synced: about 1 month ago
JSON representation
Laravel package implementing django like bcrypt
- Host: GitHub
- URL: https://github.com/kyslik/django-bcrypt
- Owner: Kyslik
- License: mit
- Created: 2017-03-06T15:17:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-07T11:22:21.000Z (almost 8 years ago)
- Last Synced: 2024-04-20T03:21:20.241Z (8 months ago)
- Topics: django-like, laravel-5-package, package, php
- Language: PHP
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```