Sha256: 1081b0dc5e40dbd79a65c27b3284397f9533cae0f795d9e3837d33df433c294b

Contents?: true

Size: 245 Bytes

Versions: 28

Compression:

Stored size: 245 Bytes

Contents

# frozen_string_literal: true

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

28 entries across 28 versions & 1 rubygems

Version Path
puppet-8.10.0 lib/puppet/parser/functions/sha256.rb
puppet-8.10.0-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.10.0-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.10.0-universal-darwin lib/puppet/parser/functions/sha256.rb
puppet-8.9.0 lib/puppet/parser/functions/sha256.rb
puppet-8.9.0-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.9.0-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.9.0-universal-darwin lib/puppet/parser/functions/sha256.rb
puppet-8.8.1 lib/puppet/parser/functions/sha256.rb
puppet-8.8.1-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.8.1-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.8.1-universal-darwin lib/puppet/parser/functions/sha256.rb
puppet-8.7.0 lib/puppet/parser/functions/sha256.rb
puppet-8.7.0-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.7.0-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.7.0-universal-darwin lib/puppet/parser/functions/sha256.rb
puppet-8.6.0 lib/puppet/parser/functions/sha256.rb
puppet-8.6.0-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.6.0-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.6.0-universal-darwin lib/puppet/parser/functions/sha256.rb