Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/autom8ter/cryptcfg

read in encrypted config files at runtime
https://github.com/autom8ter/cryptcfg

autom8ter colemanword configuration encryption golang-library

Last synced: 2 days ago
JSON representation

read in encrypted config files at runtime

Awesome Lists containing this project

README

        

# cryptcfg

a golang library

cryptcfg uses a key to decrypt a file thats been encrypted with the Autom8ter gocrypt cli tool at runtime, read in the config, and store the config in memory without ever decrypting the file on disk.

--
import "github.com/autom8ter/cryptcfg"

## Usage

#### type Crypt

```go
type Crypt struct {
}
```

#### func New

```go
func New() *Crypt
```

#### func (*Crypt) ReadInEncrypted

```go
func (c *Crypt) ReadInEncrypted(path, key string) error
```

#### func (*Crypt) Viper

```go
func (c *Crypt) Viper() *viper.Viper
```