Type: Package
Title: Create Random Passwords
Version: 1.0-0
Date: 2014-01-10
Author: Enrico Schumann
Maintainer: Enrico Schumann <es@enricoschumann.net>
Description: Create random passwords of letters, numbers and punctuation.
License: GPL-3
NeedsCompilation: no
Packaged: 2016-03-22 07:03:31 UTC; es
Repository: CRAN
Date/Publication: 2016-03-22 23:51:21
Built: R 4.5.0; ; 2024-04-30 19:28:09 UTC; unix

Random Password Generation

Description

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

Usage

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

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