diff options
Diffstat (limited to 'plugins/puppet/parser/functions/htpasswd_sha1.rb')
-rw-r--r-- | plugins/puppet/parser/functions/htpasswd_sha1.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/plugins/puppet/parser/functions/htpasswd_sha1.rb b/plugins/puppet/parser/functions/htpasswd_sha1.rb deleted file mode 100644 index 937621d..0000000 --- a/plugins/puppet/parser/functions/htpasswd_sha1.rb +++ /dev/null @@ -1,8 +0,0 @@ -require 'digest/sha1' -require 'base64' - -module Puppet::Parser::Functions - newfunction(:htpasswd_sha1, :type => :rvalue) do |args| - "{SHA}" + Base64.encode64(Digest::SHA1.digest(args[0])) - end -end |