https://github.com/chyroc/keyfile
Keychain-based file encryption
https://github.com/chyroc/keyfile
Last synced: 10 months ago
JSON representation
Keychain-based file encryption
- Host: GitHub
- URL: https://github.com/chyroc/keyfile
- Owner: chyroc
- License: apache-2.0
- Created: 2023-02-16T05:40:13.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T13:52:53.000Z (almost 3 years ago)
- Last Synced: 2025-01-29T08:22:55.908Z (12 months ago)
- Language: Go
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# keyfile
Keychain-based file encryption
## Install
```shell
CGO_ENABLED=1 go install github.com/chyroc/keyfile@latest
```
## Usage
### Encrypt File
```shell
keyfile encrypt --account `` --file filepath > encrypt_filepath
```
### Decrypt File
```shell
keyfile decrypt --account `` --file encrypt_filepath
```
### Decrypt File and Re-Encrypt to File
```shell
keyfile decrypt --account `` --file encrypt_filepath --editor vim
```
### Get Keychain Secret
```shell
keyfile get-secret --account ``
```
### Set Keychain Secret
```shell
keyfile set-secret --account `` --secret ``
```
### Del Keychain Secret
```shell
keyfile del-secret --account ``
```
### Help
```shell
NAME:
keyfile - A new cli application
USAGE:
keyfile [global options] command [command options] [arguments...]
DESCRIPTION:
Keychain-based file encryption
COMMANDS:
decrypt, dec decrypt content from file
encrypt, enc encrypt content from file
get-secret get secret from keychain
set-secret set secret to keychain
del-secret del secret from keychain
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
```