How can I use Bcrypt in my .php files?
This is how I would set this up and correct me if I am wrong
I have looked over the info at the following link. How do you use bcrypt for hashing passwords in PHP?
If I understand this correctly
I would take the function list and place that into a .php file. Then on my main program I would use something like: $isGood = $bcrypt->verify('password', $hash);
Which my encrypted password is now a variable of $isGood
.
$isGood is what I want to store into the database? correct?
How do I set up my database?
What is my field type? Do I just leave it blank? or label it as text? How do I set up the DataBase to store this type of passwor? I know I wouldn't use md5 or sha1 as the field type, because that will just encrypted it even more, or do I?