summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-03-04 16:33:28 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2015-03-04 17:27:06 -0800
commitc1cacf08851d3720633050699e9d30169837d107 (patch)
tree0e8b553e3bccc59308054f2e835a571fb2157b52
parent66e9782f6c63eda7143e7bc54aa7723c1f2a4336 (diff)
downloadchef-c1cacf08851d3720633050699e9d30169837d107.tar.gz
Hexdigest the encrypted value by default for powershell compat
-rw-r--r--lib/chef/win32/crypto.rb3
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?