Sha256: 01e03961106767b5543811d709e34f80902fadf7fc4de12e1011351d86a70694

Contents?: true

Size: 245 Bytes

Versions: 20

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

20 entries across 20 versions & 1 rubygems

Version Path
puppet-8.3.0 lib/puppet/parser/functions/sha256.rb
puppet-8.3.0-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.3.0-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.3.0-universal-darwin lib/puppet/parser/functions/sha256.rb
puppet-8.3.1 lib/puppet/parser/functions/sha256.rb
puppet-8.3.1-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.3.1-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.3.1-universal-darwin lib/puppet/parser/functions/sha256.rb
puppet-8.2.0 lib/puppet/parser/functions/sha256.rb
puppet-8.2.0-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.2.0-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.2.0-universal-darwin lib/puppet/parser/functions/sha256.rb
puppet-8.1.0 lib/puppet/parser/functions/sha256.rb
puppet-8.1.0-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.1.0-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.1.0-universal-darwin lib/puppet/parser/functions/sha256.rb
puppet-8.0.1 lib/puppet/parser/functions/sha256.rb
puppet-8.0.1-x86-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.0.1-x64-mingw32 lib/puppet/parser/functions/sha256.rb
puppet-8.0.1-universal-darwin lib/puppet/parser/functions/sha256.rb