diff options
| author | czaks <marcin@6irc.net> | 2016-04-22 05:35:43 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-04-22 05:35:43 +0200 |
| commit | caaf741691c9d44a9a186d6ce924fecb04f4f347 (patch) | |
| tree | 9b7c250ea732353f8053191b7772b4f6f8dbc7c6 /install.sql | |
| parent | 028fd3df15b2e2edc96c5b84156b0b039ea16562 (diff) | |
[SECURITY] keep up with modern password hashing standards
Diffstat (limited to 'install.sql')
| -rw-r--r-- | install.sql | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/install.sql b/install.sql index 969107a2..fbf220c1 100644 --- a/install.sql +++ b/install.sql @@ -131,8 +131,8 @@ CREATE TABLE IF NOT EXISTS `modlogs` ( CREATE TABLE IF NOT EXISTS `mods` ( `id` smallint(6) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(30) NOT NULL, - `password` char(64) CHARACTER SET ascii NOT NULL COMMENT 'SHA256', - `salt` char(32) CHARACTER SET ascii NOT NULL, + `password` varchar(256) CHARACTER SET ascii NOT NULL COMMENT 'SHA256', + `salt` varchar(64) CHARACTER SET ascii NOT NULL, `type` smallint(2) NOT NULL, `boards` text CHARACTER SET utf8 NOT NULL, PRIMARY KEY (`id`), |
