passwordGen: Password generator

View source: R/passwordGen.R

passwordGenR Documentation

Password generator

Description

A quite simple password generator.

Usage

passwordGen(
  len = 10,
  numbers = TRUE,
  special_chars = TRUE,
  upper_letters = TRUE
)

Arguments

len

numeric Total length of the required password.

numbers, special_chars, upper_letters

logical Do you want to include some of this elements in your password? TRUE by default.

Details

If the user just specifies the lenght, passwordGen will return a password composed with 20 lower-case and 30

passwordGen will generate one password at time. If you want to generate several passwords, you can use sapply(rep(7, 10), passwordGen) to generate in that case 10 passwords of length 7.

Value

A character vector of length 1.

Examples

passwordGen(len = 10)

LuisLauM/ruisu documentation built on March 26, 2024, 8:23 a.m.