Slide 16
Slide 16 text
sha256_passwordの仕様の話
● パスワードハッシュ方式(SHA-256)に基づいた認証
● salt付きでハッシュ化されるため、同じパスワードのユーザ作
成でも異なるauthentication_stringの値となる
mysql> create user kubo1 identified with 'sha256_password' by 'password';
Query OK, 0 rows affected (0.03 sec)
mysql> create user kubo2 identified with 'sha256_password' by 'password';
Query OK, 0 rows affected (0.03 sec)
mysql> select Host,User,plugin,SUBSTR(HEX(authentication_string), -10) from mysql.user
where User in ('kubo1','kubo2');
+------+-------+-----------------+-----------------------------------------+
| Host | User | plugin | SUBSTR(HEX(authentication_string), -10) |
+------+-------+-----------------+-----------------------------------------+
| % | kubo1 | sha256_password | 736D4A6132 |
| % | kubo2 | sha256_password | 7631786841 |
+------+-------+-----------------+-----------------------------------------+