An open API service indexing awesome lists of open source software.

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

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
```