password: Random Password Generation

Description Usage Arguments Details Value Author(s) Examples

View source: R/password.R

Description

Create random passwords consisting of letters, numbers and punctuation characters.

Usage

1
2
password(n = 8, numbers = TRUE, case = TRUE,
         special = c("?", "!", "&", "%", "$"))

Arguments

n

integer: length (in the sense of nchar) of password

numbers

logical: include numbers 0 to 9?

case

logical: use upper and lower case letters?

special

a character vector of punctuation characters, or FALSE.

Details

Creates a random combination of characters, using the function sample.

Value

A character vector of length one.

Author(s)

Enrico Schumann

Examples

1
2
password(8)
password(10, numbers = FALSE,  special = "/")

password documentation built on May 30, 2017, 7:39 a.m.

Search within the password package
Search all R packages, documentation and source code