Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/autom8ter/cryptcfg
- Owner: autom8ter
- Created: 2019-04-05T01:43:15.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T08:21:47.000Z (almost 6 years ago)
- Last Synced: 2024-12-28T15:47:36.125Z (about 2 months ago)
- Topics: autom8ter, colemanword, configuration, encryption, golang-library
- Language: Go
- Homepage:
- Size: 3.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```