password: Function to generate secure readable passwords/passphrases

Description Usage Arguments Value Examples

Description

Function to generate secure readable passwords/passphrases

Usage

1
2
password(no_words = 3, symbols = TRUE, numbers = TRUE, sep = NULL,
  data = NULL)

Arguments

no_words

- Number of words to be used in the password

symbols

- Do we want symbols in the password (TRUE/FALSE)?

numbers

- Do we want numbers in the password (TRUE/FALSE)? If TRUE random numbers between 0 and 999 are selected.

sep

- Specify the separator between the words. If NULL a random symbol is selected.

data

- words to be used in the password. In default mode the words from The Project Gutenberg EBook of Webster's Unabridged Dictionary, by Various are used (93077 words).

Value

A password.

Examples

1
2
3
4
5
6
7
8
9
library(PasswordGen)

password(no_words = 7, numbers = FALSE, symbols = FALSE, sep = ' ')
password(no_words = 3, numbers = FALSE, symbols = FALSE, sep = '_')
password(no_words = 3, numbers = FALSE, symbols = TRUE, sep = '_')
password(no_words = 4, numbers = TRUE, symbols = FALSE, sep = '-')
password(1)
password(2)
password()

mpascariu/PasswordGen documentation built on May 23, 2019, 6:26 a.m.