Sha256: 99cf0938ebac3d40f4112988cea852d700508f04d3c453d6509f0ec08af25473

Contents?: true

Size: 241 Bytes

Versions: 12

Compression:

Stored size: 241 Bytes

Contents

# frozen_string_literal: true

require 'securerandom'

module Argon2
  # Generates a random, binary string for use as a salt.
  class Engine
    def self.saltgen
      SecureRandom.random_bytes(Argon2::Constants::SALT_LEN)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
argon2-2.3.0 lib/argon2/engine.rb
argon2-2.2.0 lib/argon2/engine.rb
argon2-2.1.3 lib/argon2/engine.rb
argon2-2.1.2 lib/argon2/engine.rb
argon2-2.1.1 lib/argon2/engine.rb
argon2-2.1.0 lib/argon2/engine.rb
argon2-2.0.3 lib/argon2/engine.rb
argon2-2.0.2 lib/argon2/engine.rb
argon2-2.0.1 lib/argon2/engine.rb
argon2-2.0.0 lib/argon2/engine.rb
argon2-1.2.0 lib/argon2/engine.rb
argon2-1.1.5 lib/argon2/engine.rb