crypt: Encrypt a string

Description Usage Arguments Value Author(s) References Examples

View source: R/crypt.R

Description

This function encrypts one or more strings (e.g. passwords) and returns the encrypted string that can be made public. The function uses the NBS Data Encryption Standard (DES) method.

I use this to programmatically generate collections of passwords for computer or database accounts.

Usage

1
crypt(passwords, salt = "D8")

Arguments

passwords
salt

a "seed" for the encryption

Value

A character vector with as many elements as there are elements in passwords.

Author(s)

Duncan Temple Lang

References

See man crypt

Examples

1
2
 crypt("hi there")
 crypt("hi there", "A2")

omegahat/Rcrypt documentation built on May 24, 2019, 1:55 p.m.