The advise is never use mysql query to generate passwords, mostly the password could end up in system logfiles.
Also do not use external websites for generating encrypted passwords that you are going to use for your systems, often they collect it for building rainbow tables, but simple passwords...