Sha256: d8f0c2cf1c544c35ec36cc37c4ba8da7f38725638564fba9d68c4f8bc025d21e

Contents?: true

Size: 215 Bytes

Versions: 458

Compression:

Stored size: 215 Bytes

Contents

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

Version data entries

458 entries across 458 versions & 2 rubygems

Version Path
puppet-7.34.0 lib/puppet/parser/functions/sha256.rb
puppet-7.34.0-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-7.34.0-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-7.34.0-universal-darwin lib/puppet/parser/functions/sha256.rb
puppet-7.33.0 lib/puppet/parser/functions/sha256.rb
puppet-7.33.0-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-7.33.0-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-7.33.0-universal-darwin lib/puppet/parser/functions/sha256.rb
puppet-7.32.1 lib/puppet/parser/functions/sha256.rb
puppet-7.32.1-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-7.32.1-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-7.32.1-universal-darwin lib/puppet/parser/functions/sha256.rb
puppet-7.31.0 lib/puppet/parser/functions/sha256.rb
puppet-7.31.0-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-7.31.0-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-7.31.0-universal-darwin lib/puppet/parser/functions/sha256.rb
puppet-7.30.0 lib/puppet/parser/functions/sha256.rb
puppet-7.30.0-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-7.30.0-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-7.30.0-universal-darwin lib/puppet/parser/functions/sha256.rb