Crate read_secret

Source
Expand description

This rust library provides an easy way to read secrets from your environment and file. It also allows you to use external command like GPG to read keys.

Enums§

DecryptMethod
Method to decrypt a encoded secret
SecretType
Type of Secret:

Functions§

read_env
Get a value of the given environment variable. If the given environment variable doesn’t exist, env::VarError will be returned.
read_file
path relative to project root or an absolute path
read_secret
Provide an common entry to read secret