From 24acf421bb5e37fc954ff2ecfa9dc7ee71481dec Mon Sep 17 00:00:00 2001 From: Akond Rahman Date: Wed, 3 Apr 2019 19:22:11 -0500 Subject: [PATCH] Update database_mysql.rb Use of MD5 has security weaknesses, better to use SHA 512. Any feedback is welcome. --- cookbooks/zabbix/recipes/database_mysql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/zabbix/recipes/database_mysql.rb b/cookbooks/zabbix/recipes/database_mysql.rb index 90f286f..a958c29 100644 --- a/cookbooks/zabbix/recipes/database_mysql.rb +++ b/cookbooks/zabbix/recipes/database_mysql.rb @@ -126,7 +126,7 @@ username = node.zabbix.api.username first_name = 'Zabbix' last_name = 'Administrator' - md5 = Digest::MD5.hexdigest(node.zabbix.api.password) + md5 = Digest::SHA2.new(512).hexdigest(node.zabbix.api.password) rows = 200 type = 3 grp_name = node.zabbix.api.user_group