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.
1 parent 1f66d39 commit a3629b0Copy full SHA for a3629b0
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