feat: add example - rsa_encrypt

This commit is contained in:
2022-04-03 18:52:42 +08:00
parent 83d25d6d97
commit fc28ed40e3
4 changed files with 59 additions and 33 deletions

View File

@@ -9,7 +9,7 @@ cargo install --git https://git.hatter.ink/hatter/card-cli.git
# PGP
## decrypt text
## encrypt & decrypt
sample public key
```
@@ -39,7 +39,7 @@ decrypt
$ cargo r -- pgp-card-decrypt -c $(cat enc.txt | xxd -ps -c 11111)
```
## sign
## sign & verify
sign
```
@@ -56,29 +56,3 @@ $ openssl dgst -sha256 -verify sign_key.pem -signature sig test.txt
Verified OK
```
Awesome webauthn:
* https://github.com/herrjemand/awesome-webauthn
Hard U2F projects:
* https://github.com/google/OpenSK
* https://github.com/solokeys/solo
* https://github.com/conorpp/u2f-zero
* https://github.com/makerdiary/nrf52-u2f
Soft U2F projects:
* https://github.com/github/SoftU2F
* https://github.com/SoftU2F/SoftU2F-Win
* https://github.com/danstiner/rust-u2f
Related webauthn Rust projects:
* https://github.com/mozilla/authenticator-rs/
* https://github.com/gebogebogebo/ctap-hid-fido2
* https://github.com/kanidm/webauthn-rs
* https://github.com/kanidm/webauthn-authenticator-rs
* https://github.com/shimunn/ctap
OpenPGP projects:
* https://github.com/solokeys/piv-authenticator
* https://gitlab.com/hkos/openpgp-card
* https://gitlab.com/sequoia-pgp/sequoia