gen_pw_from_char: Generate Password from Character String

View source: R/utils-passwords.R

gen_pw_from_charR Documentation

Generate Password from Character String

Description

Generate a password from a non-secret string char with a secret key.

Usage

gen_pw_from_char(char, key, pw_length = 10)

Arguments

char

A character string from which to generate a password.

key

A character string representing a secret key for generating the password with the given character string.

pw_length

(numeric) Length of the password

Value

A character string of length pw_length generated with a seed derived from the char provided (a public facing string, such as a name) as wekk as the key (a secret string known to the password generator).

Examples


# Create a password for the name "Jonathan" using the secret key "password".
gen_pw_from_char(char = "Jonathan", key = "password", pw_length = 10)


jdtrat/responsematch documentation built on Sept. 15, 2022, 6:19 a.m.