From 7e2a80c0fbe7409f83d7648354f6d00b1f14aeec Mon Sep 17 00:00:00 2001 From: Akond Rahman Date: Wed, 3 Apr 2019 19:08:48 -0500 Subject: [PATCH] Update database_mysql.rb MD5 has security weaknesses, better to use SHA512. Any feedback is appreciated. --- 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