Coder Social home page Coder Social logo

light-encryptor's Introduction

light-encryptor

A command line utility to encrypt plain text secret into a string with prefix CRYPT

Most light-4j modules have a config file, and it might contain sensitive values that cannot be checked into the git repository in plain text. Users can use this command line utility to encrypt the sensitive value and check into the repository. During the runtime, the Decryptor class defined in the config.yml file will decrypt the encrypted text into plain text again.

Usage

The jar file has been released to maven central, and it can be downloaded from the following Download URL.

Or you can download it with curl in the command line.

curl -k -o light-encryptor-1.0.0.jar https://repo1.maven.org/maven2/com/networknt/light-encryptor/1.0.0/light-encryptor-1.0.0.jar

If your organization has Artifactory installed to proxy the Maven Central libraries, the URL might look like the following.

curl -k -o light-encryptor-1.0.0.jar https://artifactary.example.com/artifactory/Maven_Central/com/networknt/light-encryptor/1.0.0/light-encryptor-1.0.0.jar

To encrypt a secret with a master key named master-key

java -jar light-encryptor-1.0.0.jar "master-key" "secret"

When running the above command on Windows, enclose the plain text into double quotes("") in the command line above.

The master key should be configured on the target server as an environment variable or -D option in the java command line to start the light-4j server.

It is recommended to use the same master key for all the services belonging to the same application. Or use the same master key per DevOps engineer.

To learn how to set up the master key on the deployment server, please refer to the decryptor.

Build

mvn clean install

Release

mvn clean install deploy -DperformRelease

light-encryptor's People

Contributors

stevehu avatar

Watchers

 avatar  avatar

light-encryptor's Issues

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.