https://github.com/fabiospampinato/secret
The simplest command to encrypt/decrypt a file, useful for committing encrypted ".env" files to version control, among other things.
https://github.com/fabiospampinato/secret
decrypt encrypt env file git secret secrets
Last synced: 4 months ago
JSON representation
The simplest command to encrypt/decrypt a file, useful for committing encrypted ".env" files to version control, among other things.
- Host: GitHub
- URL: https://github.com/fabiospampinato/secret
- Owner: fabiospampinato
- License: mit
- Created: 2021-11-18T00:14:37.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-24T16:28:50.000Z (about 2 years ago)
- Last Synced: 2025-07-02T19:54:25.672Z (4 months ago)
- Topics: decrypt, encrypt, env, file, git, secret, secrets
- Language: JavaScript
- Homepage:
- Size: 3.01 MB
- Stars: 19
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Secret
The simplest command to encrypt/decrypt a file, useful for committing encrypted ".env" files to version control, among other things.
Secret automatically detects if you want to encrypt or decrypt a file: if the file ends with the ".secret" extension then it will try to decrypt it, otherwise it will try to encrypt it.
## Install
```sh
npm install -g @fabiospampinato/secret
```
## Usage
Encrypt a file:
```sh
secret myFile.txt
```
Decrypt a file:
```sh
secret myFile.txt.secret
```
## License
MIT © Fabio Spampinato