mysql - Hash password with triggers using bcrypt -


is possible hash password using triggers?

i thinking like:

create trigger `hash_password`     after insert on `users` each row     begin         update users set password = hash(new.password)     end 

but how make encrypted bcrypt?


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -