生成MySQL密码哈希,支持caching_sha2_password与mysql_native_password格式,基于SHA256-crypt迭代派生,抗暴力破解,可写入mysql.user表。
mysql.user.authentication_string 字段。
mysql_native_password 采用双重 SHA1(无盐,较快,已弃用),
caching_sha2_password(MySQL 8.0+ 默认)基于 SHA256-crypt 迭代派生,抗暴力破解。