technion/ruby-argon2

View on GitHub
lib/argon2/constants.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Argon2
  # Constants utilised in several parts of the Argon2 module
  # SALT_LEN is a standard recommendation from the Argon2 spec.

  module Constants
    SALT_LEN = 16
    OUT_LEN = 32 # Binary, unencoded output
    ENCODE_LEN = 108 # Encoded output
  end
end