generate_password: Generate Password

View source: R/password.R

generate_passwordR Documentation

Generate Password

Description

Generate Password

Usage

generate_password(
  words = c("adjective", "noun"),
  collapse = "-",
  numbers = 0,
  symbols = 0,
  unique = FALSE,
  min_char = 12,
  max_char = 20,
  verbose = TRUE
)

Arguments

words

Type of word in chronological order. Can be 1 of "adjective", "noun", "adverb", "verb", or "other".

collapse

Passed to collapse in paste().

numbers

Integer of number count to be added to password.

symbols

Integer of symbol count to be added to password.

unique

Should every character within the symbol be unique? This includes the numbers and symbols that are added to the password.

verbose

Only applies when unique is set to TRUE. If TRUE, each generated password is printed to the console prior to undergoing uniqueness testing. If the password passes the uniqueness test, then it is printed to the console along with the time it took for the password to be generated.

Details

This function will throw an error if the length of words is greater than 2 along with a collapse value that is not "", but unique is set to TRUE. The generated password will be in the order of 1. words, 2. numbers, and 3. symbols and cannot be altered.


meerapatelmd/suzyBakeOven documentation built on March 30, 2022, 1:44 p.m.