feat: update readme
This commit is contained in:
@@ -36,18 +36,18 @@ $ openssl rsautl -encrypt -pubin -inkey enc_key.pem -in test.txt -out enc.txt -p
|
||||
|
||||
decrypt
|
||||
```
|
||||
$ cargo r -- pgp-card-decrypt -c $(cat enc.txt | xxd -ps -c 11111)
|
||||
$ card-cli pgp-card-decrypt -c $(cat enc.txt | xxd -ps -c 11111)
|
||||
```
|
||||
|
||||
## sign & verify
|
||||
|
||||
sign
|
||||
```
|
||||
$ cargo r -- pgp-card-sign -2 $(shasum -a 256 test.txt | awk '{print $1}')
|
||||
$ card-cli pgp-card-sign -2 $(shasum -a 256 test.txt | awk '{print $1}')
|
||||
|
||||
OR
|
||||
|
||||
$ cargo r -- pgp-card-sign --in test.txt --use-sha256
|
||||
$ card-cli pgp-card-sign --in test.txt --use-sha256
|
||||
```
|
||||
|
||||
verify
|
||||
|
||||
Reference in New Issue
Block a user