newpassword: Create a random password.

Description Usage Arguments Value Examples

View source: R/newpassword.R

Description

Generates a random password containing the desired number of letters, numeric digits and ASCII symbols.

Usage

1
newpassword(Letters = 8, Numbers = 5, Symbols = 0)

Arguments

Letters

Number of characters from letters/LETTERS to include.

Numbers

Number of digits from 0-9 to include.

Symbols

Number of symbol characters to include.

Value

A randomly generaged password.

Examples

1
2
3
4
5
6
# Defaults; easy to double-click, copy and paste.
newpassword()
# A longer and more complicated password.
newpassword(9,7,5)
# Multiple new passwords.
replicate(10, newpassword())

stevetnz/stevesRfunctions documentation built on May 28, 2019, 8:21 a.m.