The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Type: Package
Title: Create Random Passwords
Version: 1.0-1
Date: 2025-05-01
Maintainer: Enrico Schumann <es@enricoschumann.net>
Description: Create random passwords of letters, numbers and punctuation.
License: GPL-3
URL: https://enricoschumann.net/R/packages/password/ , https://github.com/enricoschumann/password
NeedsCompilation: no
Packaged: 2025-05-01 06:34:02 UTC; es19
Author: Enrico Schumann ORCID iD [aut, cre]
Repository: CRAN
Date/Publication: 2025-05-01 07:10:02 UTC

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 = "/")

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.