GithubHelp home page GithubHelp logo

npx-cryptfile's Introduction

Filecrypt

Encrypt and decrypt files with ease so that you can securely check them in to source control.

Files are encrypted with OpenSSL AES-256 algorithm.

Basic Usage

Encrypt

Usage: npx cryptfile encrypt file=<path-to-file> pw=<password>

Example: npx cryptfile encrypt file=./src/Crypt.ts pw=hunter2

Output: ./src/Crypt.ts.enc

Decrypt

Usage: npx cryptfile decrypt file=<path-to-file> pw=<password>

Example:

npx cryptfile decrypt file=./src/Crypt.ts pw=hunter2
npx cryptfile decrypt file=./src/Crypt.ts.enc pw=hunter2

Output: ./src/Crypt.ts

Configuration File

.filecrypt.cfg

<path-to-file-#1>
<path-to-file-#2>
<path-to-file-#3>

Example:

package.json
package.lock.json
src/Crypt.ts

Encrypt from .cryptfile.cfg

Usage: npx cryptfile encrypt cfg=<path-to-cryptfile.cfg> pw=<password≥

Example: npx encrypt cryptfile cfg=.cryptfile.cfg pw=hunter2

Decrypt from .cryptfile.cfg

Usage: npx cryptfile decrypt cfg=<path-to-cryptfile.cfg> pw=<password≥

Example: npx decrypt cryptfile cfg=.cryptfile.cfg pw=hunter2

npx-cryptfile's People

Contributors

aelesia avatar es-lynn avatar

Watchers

James Cloos avatar  avatar

npx-cryptfile's Issues

Do you mean AES-256 (not SHA-256)?

SHA-256 is a hash algorithm ("one-way" encryption; result cannot be converted back to the original), and it looks like you are passing the -aes-256-cbc option to OpenSSL
here.
However, the README.md file states:

Files are encrypted with OpenSSL SHA-256 algorithm.

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.