We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed474d2 + 37de718 commit d6ae444Copy full SHA for d6ae444
lib/puppet/parser/functions/pw_hash.rb
@@ -76,7 +76,7 @@
76
77
# handle weak implementations of String#crypt
78
# dup the string to get rid of frozen status for testing
79
- if RUBY_PLATFORM == 'java'
+ if RUBY_PLATFORM == 'java' && !args[1].downcase.start_with?('bcrypt')
80
# puppetserver bundles Apache Commons Codec
81
org.apache.commons.codec.digest.Crypt.crypt(password.to_java_bytes, salt)
82
elsif (+'test').crypt('$1$1') == '$1$1$Bp8CU9Oujr9SSEw53WV6G.'
0 commit comments