diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-03-04 16:33:28 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-03-04 17:27:06 -0800 |
commit | c1cacf08851d3720633050699e9d30169837d107 (patch) | |
tree | 0e8b553e3bccc59308054f2e835a571fb2157b52 | |
parent | 66e9782f6c63eda7143e7bc54aa7723c1f2a4336 (diff) | |
download | chef-c1cacf08851d3720633050699e9d30169837d107.tar.gz |
Hexdigest the encrypted value by default for powershell compat
-rw-r--r-- | lib/chef/win32/crypto.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/win32/crypto.rb b/lib/chef/win32/crypto.rb index 5cb0a25ee7..79cf51b002 100644 --- a/lib/chef/win32/crypto.rb +++ b/lib/chef/win32/crypto.rb @@ -19,6 +19,7 @@ require 'chef/win32/error'
require 'chef/win32/api/memory'
require 'chef/win32/api/crypto'
+require 'digest'
class Chef
module ReservedNames::Win32
@@ -35,7 +36,7 @@ class Chef if block
block.call(bytes)
else
- bytes
+ Digest.hexencode(bytes)
end
ensure
unless data_blob[:pbData].null?
|