CHEF-4639: writing credentials files with `file` or `template` may leak credentials in diffs

Updating @goodmanio's PR https://github.com/opscode/chef/pull/1178 to still include the checksums in the output.

@danielsdeleo thoughts?