feat: update readme

This commit is contained in:
2023-04-22 17:08:22 +08:00
parent cdc12e38f8
commit 330759fcb9

View File

@@ -36,18 +36,18 @@ $ openssl rsautl -encrypt -pubin -inkey enc_key.pem -in test.txt -out enc.txt -p
decrypt 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 & verify
sign 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 OR
$ cargo r -- pgp-card-sign --in test.txt --use-sha256 $ card-cli pgp-card-sign --in test.txt --use-sha256
``` ```
verify verify