Sha256: c3c886f87825837a1a206416fcac5ed7dff4adbfab02397a029be290e53c6824

Contents?: true

Size: 240 Bytes

Versions: 6

Compression:

Stored size: 240 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

6 entries across 6 versions & 1 rubygems

Version Path
argon2-1.1.4 lib/argon2/engine.rb
argon2-1.1.3 lib/argon2/engine.rb
argon2-1.1.2 lib/argon2/engine.rb
argon2-1.1.1 lib/argon2/engine.rb
argon2-1.1.0 lib/argon2/engine.rb
argon2-1.0.0 lib/argon2/engine.rb