[GH-ISSUE #511] Cryptography of the koel bank #358

Closed
opened 2026-02-26 02:32:57 +03:00 by kerem · 8 comments
Owner

Originally created by @gilbertobr on GitHub (Dec 31, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/511

@phanan
What kind of encryption does koel use when entering users?

First of all, congratulations on your project.

Originally created by @gilbertobr on GitHub (Dec 31, 2016). Original GitHub issue: https://github.com/koel/koel/issues/511 @phanan What kind of encryption does koel use when entering users? First of all, congratulations on your project.
kerem closed this issue 2026-02-26 02:32:57 +03:00
Author
Owner

@gamerlv commented on GitHub (Jan 1, 2017):

Koel uses Bcrypt to encrypt user passwords.
For more info on this see:

<!-- gh-comment-id:269918405 --> @gamerlv commented on GitHub (Jan 1, 2017): Koel uses Bcrypt to encrypt user passwords. For more info on this see: - https://github.com/phanan/koel/blob/b0f5b3d76e6c050e2ef33c8c653ff337d1ed1754/app/Http/Controllers/API/UserController.php#L26 - https://laravel.com/docs/5.3/hashing
Author
Owner

@gilbertobr commented on GitHub (Jan 2, 2017):

Thanks @gamerlv

I'll study some more ... to create a way to insert users directly through the bank

<!-- gh-comment-id:270026479 --> @gilbertobr commented on GitHub (Jan 2, 2017): Thanks @gamerlv I'll study some more ... to create a way to insert users directly through the bank
Author
Owner

@gilbertobr commented on GitHub (Jan 4, 2017):

Good...
I am able to create, a new direct user in the bank.
But I have another problem.
When you register a new user.
The Administrator user loses full access.
When I make a DELETE in the bank.
Koel starts working again normally.
Would anyone have any suggestions, what could that be?

<!-- gh-comment-id:270511544 --> @gilbertobr commented on GitHub (Jan 4, 2017): Good... I am able to create, a new direct user in the bank. But I have another problem. When you register a new user. The Administrator user loses full access. When I make a DELETE in the bank. Koel starts working again normally. Would anyone have any suggestions, what could that be?
Author
Owner

@breadlesscode commented on GitHub (Jan 5, 2017):

Use php artisan tinker to create Users.

$user = new \App\Models\User();
$user->name = 'Test User';
$user->password = bcrypt('password');
$user->email = 'test@test.de';
$user->save();

I think this is the simplest way to add users to an laravel app ;)

<!-- gh-comment-id:270620209 --> @breadlesscode commented on GitHub (Jan 5, 2017): Use `php artisan tinker` to create Users. ```php $user = new \App\Models\User(); $user->name = 'Test User'; $user->password = bcrypt('password'); $user->email = 'test@test.de'; $user->save(); ``` I think this is the simplest way to add users to an laravel app ;)
Author
Owner

@gilbertobr commented on GitHub (Jan 7, 2017):

Thank you @breadlesscode ,
More needed insert this php artisan tiker into a fully php code.
Out of Laravel.
Well I'm creating a page to have a direct registration.

Would anyone have any suggestions?

Thanks to all who are helping.

<!-- gh-comment-id:271093140 --> @gilbertobr commented on GitHub (Jan 7, 2017): Thank you @breadlesscode , More needed insert this php artisan tiker into a fully php code. Out of Laravel. Well I'm creating a page to have a direct registration. Would anyone have any suggestions? Thanks to all who are helping.
Author
Owner

@travis-r6s commented on GitHub (Mar 20, 2017):

@gilbertosj did you get anywhere with this?
I would also like to do the same thing...

<!-- gh-comment-id:287724124 --> @travis-r6s commented on GitHub (Mar 20, 2017): @gilbertosj did you get anywhere with this? I would also like to do the same thing...
Author
Owner

@breadlesscode commented on GitHub (Mar 20, 2017):

And again, Koel is using bcrypt. This is first search result on PHP.net was this function...

$password = 'password';
$hash = password_hash($password, PASSWORD_BCRYPT);
<!-- gh-comment-id:287728705 --> @breadlesscode commented on GitHub (Mar 20, 2017): And again, Koel is using bcrypt. This is first search result on PHP.net was this function... ``` $password = 'password'; $hash = password_hash($password, PASSWORD_BCRYPT); ```
Author
Owner

@travis-r6s commented on GitHub (Mar 20, 2017):

sorry - managed to do it just after i posted that!
thanks for the help anyway.

<!-- gh-comment-id:287734318 --> @travis-r6s commented on GitHub (Mar 20, 2017): sorry - managed to do it just after i posted that! thanks for the help anyway.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#358
No description provided.