envenc

package module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2024 License: GPL-3.0 Imports: 12 Imported by: 1

README

envenc

Open in Gitpod

tests

Description

Secures your .env files with a password.

Works similarly to ansible-vault.

Installation

  • Download the binary for your platform from the latest release

  • You may install it globally, or use as standalone executable

Example Usage:

  • To create a new vault file
$> ./envenc init .env.vault
  • To set a new key-value pair
$> ./envenc key-set .env.vault
  • To list all key-value pairs
$> ./envenc key-list .env.vault
  • To remove a key-value pair
$> ./envenc key-remove .env.vault
  • To obfuscate a string
$> ./envenc obfuscate
  • To deobfuscate a string
$> ./envenc deobfuscate

TODO

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cli

func Cli(args []string)

func Deobfuscate added in v0.3.0

func Deobfuscate(input string) (string, error)

Deobfuscate deobfuscates an ASCII string (not-compatible with Unicode)

Parameters:

  • input: string to deobfuscate

Returns:

  • string: deobfuscated string
  • error: error if any

func EnvList

func EnvList(vaultFilePath string, vaultPassword string) (map[string]string, error)

func Init

func Init(vaultFilePath string, vaultPassword string) error

func KeyExists

func KeyExists(vaultFilePath string, vaultPassword string, key string) (bool, error)

func KeyGet

func KeyGet(vaultFilePath string, vaultPassword string, key string) (string, error)

func KeyRemove

func KeyRemove(vaultFilePath string, vaultPassword string, key string) error

func KeySet

func KeySet(vaultFilePath string, vaultPassword string, key string, value string) error

func Obfuscate added in v0.3.0

func Obfuscate(input string) (string, error)

Obfuscate obfuscates an ASCII string (not-compatible with Unicode)

Parameters:

  • input: string to obfuscate

Returns:

  • string: obfuscated string
  • error: error if any

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL