Module: PasswordVault

Extended by:
MintLogger
Defined in:
src/mintpress-common/lib/mintpress-common/hashicorp.rb,
src/mintpress-common/lib/mintpress-common/secret_common.rb

Defined Under Namespace

Classes: HashiCorpVault

Constant Summary

Constants included from MintLogger

MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN

Class Method Summary collapse

Methods included from MintLogger::Utils::Common

#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send

Class Method Details

.generate_random_characters(length, include_chars: true, include_numbers: true, include_symbols: true, must_start_with_char: true, symbols: '!@#$%^&*()_+{}|;:,.<>?') ⇒ String

Generates a random password

Parameters:

  • length (Integer)
    The length of the generated password
  • include_chars (Boolean) (defaults to: true)
    Whether to include alphabetic characters (default: true)
  • include_numbers (Boolean) (defaults to: true)
    Whether to include numeric characters (default: true)
  • include_symbols (Boolean) (defaults to: true)
    Whether to include symbols (default: true)
  • symbols (String) (defaults to: '!@#$%^&*()_+{}|;:,.<>?')
    A string of symbols to include (default: '!@#$%^&*()_+[]{}|;:,.<>?')

Returns:

  • (String)
    The generated password

Raises:

  • (ArgumentError)