Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eminmuhammadi authored Nov 3, 2023
1 parent cbec330 commit 3f07d4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Returns a passphrase in the file `passphrase.txt`

- Generate public and private key (stored in a file)
```bash
davinci new-keypair --size 2048 --passphrase ./passphrase.key --folder ./path-to-folder
davinci new-keypair --size 2048 --passphrase ./passphrase.txt --folder ./path-to-folder
```
Returns the public key in the file `publicKey.pem` and the private key in the file `privateKey.pem`.

Expand All @@ -28,13 +28,13 @@ Return the symmetric key in the file `key.txt`.

- Encrypt a file
```bash
davinci encrypt --input ./file.ext --output ./file-decrypted.ext --key ./key.txt --passphrase ./passphrase.key --public-key ./publicKey.pem
davinci encrypt --input ./file.ext --output ./file-decrypted.ext --key ./key.txt --passphrase ./passphrase.txt --public-key ./publicKey.pem
```
Encrypts the file `file.ext` using the key `key.txt` (encrypted using RSA) and stores the result in `file-decrypted.ext`.

- Decrypt a file
```bash
davinci decrypt --input ./file-decrypted.ext --output ./file.ext --passphrase ./passphrase.key --private-key ./privateKey.pem
davinci decrypt --input ./file-decrypted.ext --output ./file.ext --passphrase ./passphrase.txt --private-key ./privateKey.pem
```
Decrypts the file `file-decrypted.ext` using the key `key.txt` (encrypted using RSA) and stores the result in `file.ext`.

Expand Down

0 comments on commit 3f07d4c

Please sign in to comment.