Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename bcrypt() helper #20155

Closed
wants to merge 1 commit into from
Closed

Rename bcrypt() helper #20155

wants to merge 1 commit into from

Conversation

m1guelpf
Copy link
Contributor

@m1guelpf m1guelpf commented Jul 19, 2017

As discussed in laravel/ideas#695 (comment), this Pull Request renames the bcrypt() helper to a more general name, str_hash(). This is done because bcrypt may be switched with another algorithm in the near future (PHP7.2 probably).

🔑

@m1guelpf m1guelpf changed the title Rename bcrypt() helper to hash() Rename bcrypt() helper to hash() Jul 19, 2017
@browner12
Copy link
Contributor

we can't use hash because that is a built in PHP function

@m1guelpf
Copy link
Contributor Author

m1guelpf commented Jul 19, 2017

@browner12 How about str_hash()?

@m1guelpf m1guelpf changed the title Rename bcrypt() helper to hash() Rename bcrypt() helper Jul 19, 2017
@Dylan-DPC-zz
Copy link

you just sabotaged #20152

@browner12
Copy link
Contributor

browner12 commented Jul 19, 2017

yah, str_hash might work.

I was worried you could maybe pass in things other than strings, but it looks like the make method of BcryptHasher expects a string as the first argument.

which apparently is just a wrapper for the built-in password_hash function, which accepts a string.

@m1guelpf
Copy link
Contributor Author

Closed in favour of #20152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants