Puppet Function: htpasswd::ht_crypt

Defined in:
lib/puppet/functions/htpasswd/ht_crypt.rb
Function type:
Ruby 4.x API

Overview

htpasswd::ht_crypt(String $password, String $salt)String

Encrypt Password with crypt

Parameters:

  • password (String)
  • salt (String)

Returns:

  • (String)


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