Puppet Function: htpasswd::ht_crypt
- Defined in:
- lib/puppet/functions/htpasswd/ht_crypt.rb
- Function type:
- Ruby 4.x API
Overview
Encrypt Password with crypt
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/puppet/functions/htpasswd/ht_crypt.rb', line 2 Puppet::Functions.create_function(:'htpasswd::ht_crypt') do dispatch :ht_crypt do param 'String', :password param 'String', :salt return_type 'String' end def ht_crypt(password, salt) password.crypt(salt) end end |