43 lines
548 B
Markdown
43 lines
548 B
Markdown
# secure-editor-rs
|
|
|
|
Secure Editor written in Rust Programming Language.
|
|
|
|
## Preparation
|
|
|
|
```shell
|
|
cargo install create-tauri-app --locked
|
|
```
|
|
|
|
```shell
|
|
cargo install tauri-cli
|
|
```
|
|
|
|
## Build
|
|
|
|
### Development Build
|
|
|
|
```shell
|
|
just dev
|
|
```
|
|
|
|
### Release Build
|
|
|
|
```shell
|
|
just build
|
|
```
|
|
|
|
## Usage
|
|
|
|
Command line:
|
|
```shell
|
|
secure-editor-rs <file-name> <algorithm> <key-hex> <nonce-hex>
|
|
```
|
|
|
|
> `<algorithm>` is always `aes-256-gcm`<br>
|
|
> Exit `0` when success, otherwise return none `0`
|
|
|
|
Export:
|
|
```shell
|
|
export SECURE_EDITOR=/REAL-PATH/secure-editor-rs
|
|
```
|