key: 'key' vector

Description Usage Arguments Value See Also

View source: R/key.R

Description

This creates a character vector that represents keys that can be used to encrypt/decrypt a secret. Usually, you will only need a single key at a time. A key is similar to a secret(), but is stricter with what values are allowed. Currently, this checks that the input is a character vector with only hexadecimal characters, and has 64 characters total. This represents a 32-byte binary key.

Usage

1
2
3
4
5
key(x = character())

is_key(x)

as_key(x)

Arguments

x
  • For key(): A hexadecimal character vector where all(nchar(x) == 64)

    • For is_key(): An object to test

    • For as_key(): An object to cast

Value

An S3 vector of class vault_key

See Also


shunsambongi/vault documentation built on March 19, 2020, 4:58 p.m.