Giter Club home page Giter Club logo

secrex's Introduction

Secrex

CI Status Hex Version

Simple and secure secrets manager in Elixir projects

Installation

The package can be installed by adding secrex to our list of dependencies in mix.exs:

def deps do
  [
    {:secrex, "~> 0.3", runtime: false}
  ]
end

For usage information see the documentation.

Mix tasks

There are two Mix tasks available:

  • mix secrex.encrypt
  • mix secrex.decrypt

Secrex requires some configuration in order to work. For example, in config/config.exs:

config :secrex,
  key_file: ".secret-key",
  files: ["config/env/prod.secret.exs"]
  • :key_file - a path to the key file that will be used for encryption and decryption if this is not configured, you will be prompted to enter it later
  • :files - list of files that needs to be encrypted and decrypted
  • :cipher - the cipher module to handle secret encryption/decryption. Must be an implementation of Secrex.Cipher. Defaults to Secrex.AES.

License

This software is licensed under the ISC license.

secrex's People

Contributors

b0oh avatar ggvgc avatar lexmag avatar qcam avatar ybod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

secrex's Issues

Handle decryption errors

Currently, if the secret phrase is incorrect, the decryption function will get an :error, which is directly passed to File.write!/3 and produces an unclear argument error.

Split secret-key and secret files by buckets

The goal is to be able to encrypt/decrypt a specific bucket and keep the encryption/decryption of all buckets as the default behavior. Also, allow to define a secret-key per bucket.

mix secret.encrypt --bucket my_bucket
mix secret.encrypt
mix secret.decrypt --bucket my_bucket
mix secret.decrypt

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.