CHips L MINI SHELL

CHips L pro

Current Path : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/functions/
Upload File :
Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/functions/sha256.rb

require 'digest/sha2'

Puppet::Parser::Functions::newfunction(:sha256, :type => :rvalue, :arity => 1, :doc => "Returns a SHA256 hash value from a provided string.") do |args|
  Digest::SHA256.hexdigest(args[0])
end

Copyright 2K16 - 2K18 Indonesian Hacker Rulez