Sha256: f3ab9729cbfb5b598cfab2d8b258c94ca4a029ffb380b3f7979dcfff6fd4ec94

Contents?: true

Size: 276 Bytes

Versions: 23

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true

module KnapsackPro
  module Crypto
    class Digestor
      def self.salt_hexdigest(str_to_encrypt)
        salt = KnapsackPro::Config::Env.salt
        str = salt + str_to_encrypt
        Digest::SHA2.hexdigest(str)
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
knapsack_pro-7.13.0 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.12.1 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.12.0 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.11.0 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.10.0 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.9.0 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.8.2 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.8.1 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.8.0 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.7.0 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.6.2 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.6.1 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.6.0 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.1.0 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.0.1 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-7.0.0 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-6.0.4 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-6.0.3 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-6.0.2 lib/knapsack_pro/crypto/digestor.rb
knapsack_pro-6.0.1 lib/knapsack_pro/crypto/digestor.rb