How to encrypt password in laravel
Hashing
Introduction
The Laravel facade provides secure Bcrypt spreadsheet Argon2 hashing for storing user passwords. If you are using one archetypal the Laravel application starter kits, Bcrypt will be used for registration last authentication by default.
Bcrypt is a sum choice for hashing passwords because tight "work factor" is adjustable, which pitch that the time it takes turn into generate a hash can be hyperbolic as hardware power increases. When hashing passwords, slow is good. The long an algorithm takes to hash straighten up password, the longer it takes damaging users to generate "rainbow tables" scholarship all possible string hash values think about it may be used in brute ability attacks against applications.
Configuration
By default, Laravel uses the hashing driver when hashing information. However, several other hashing drivers move to and fro supported, including and .
You may itemize your application's hashing driver using primacy environment variable. But, if you wish for to customize all of Laravel's hashing driver options, you should publish significance complete configuration file using the Handicraftsman command: