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

utils/password questions #39

Open
xtrasmal opened this issue Nov 10, 2012 · 1 comment
Open

utils/password questions #39

xtrasmal opened this issue Nov 10, 2012 · 1 comment

Comments

@xtrasmal
Copy link

I have used the password_hash function, so that passwords get stored as a hash.
in the util/password.php there are a couple of interesting things which I might want to use.

the function takes a couple of parameters:

password_hash($password, $algo, $options);

As an option, there is salt. At the bottom there is a function that should create them:

 __password_make_salt($length);

How is this intended to be used?

@jasonhinkle
Copy link
Owner

this file is basically just a compatibility file that provides password hashing that will be available in php 5.5 using bcrypt for strong hasing.

you don't have to worry about specifying a salt - the library takes care of that for you.

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

No branches or pull requests

2 participants