From 6ae5d818a95f691bfdf128edad9b5990aa5c41e8 Mon Sep 17 00:00:00 2001 From: Akond Rahman Date: Wed, 3 Apr 2019 20:01:28 -0500 Subject: [PATCH] Update database_mysql.rb 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