encrypt_vec: Encrypts/Decrypts a vector

View source: R/encryption.r

encrypt_vecR Documentation

Encrypts/Decrypts a vector

Description

Used internally to encrypt/decrypt the value column of your cookie jar.

Usage

encrypt_vec(vec)

decrypt_vec(vec)

Arguments

vec

A vector of values to encrypt

Details

If you save valuable cookies, for example login information, you should encrypt them with a personalised password. This can be set with, e.g., Sys.setenv("COOKIE_KEY" = "megageheim") or in an .Renviron file.

Value

list of encrypted elements (for encrypt_vec); vector of decrypted elements (for encrypt_vec).

Examples

enc <- encrypt_vec(c("foo", "bar"))
decrypt_vec(enc)


cookiemonster documentation built on May 29, 2024, 8:12 a.m.