Use SHA2-512 for admin users

MD5 is not secure enough with the modern hardware. Upgrading to SHA2-512
helps move the problem to the future.
This commit is contained in:
Markus Mäkelä
2019-04-04 23:40:47 +03:00
parent adba581a4d
commit 31c93cfe1c
2 changed files with 35 additions and 14 deletions

View File

@ -22,8 +22,6 @@
MXS_BEGIN_DECLS
#define ADMIN_SALT "$1$MXS"
/* Max length of fields in for admin users */
#define ADMIN_USER_MAXLEN 128
#define ADMIN_PASSWORD_MAXLEN 128