03dfbe40d8956e08c4ee82139a220099cd9f576a
webauthn-cli
A cli using https://github.com/mozilla/authenticator-rs
Install:
cargo install --git https://git.hatter.ink/hatter/webauthn-cli.git
PGP
decrypt text
sample public key
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEApUM8M+QRMUw0dIvXISFx
43j4h9CK38Y9HD6kPcc3Z0dCGPiFy7Ze0OQebPWHyUZ2YmqsdyzFuOQuV9P2pxxj
/WLIgRqZV8Jk8tWhtAjOOvm0MTc2rg+EJHfa+zhX4eFEMsj4DvQBMJDXiKnpXTM/
j7oMKpIUQHqfXBwsEJHLmHZTLeEBEYKcZXTAmuu3WdxK5jvEc02Xt2hZ1fBs0M9e
/2EMe3t69aH4/rabiBjF2h9Jde15wrJMxXaCCWJqYhbBS0CJ3BdjkAqOIpcqPXva
xiJN1pNpK8ejA9Q4Nmx7pxnvfv+hCPkWXZS3r/BWZ9lFZc8uErQEbB4gLgko8jOl
fQF7cYqtZEs69qY8nnIUBsqZYfAp+bQd2xCFSbEZAl+OrtGzfVjD9YFMPy02+xRg
v2N3KT3KHHvuU7WxrvffrshP2fwDuG2MBlmcq1suAKxA0cYPSyajceEqw/3ogSp7
7SYx41rT8EWLmTvU0CHzCsuf/O7sDWZRfxatAzWhBBhnKCPqzizpOQOqm8XhCt74
FfnabPpHM9XUjoQIPrTssyS3eWqynzJiAqez6v2LK2fhL7IkcLtvt5p59Y+KY4I6
YQ09iUh7lKJHRhkgTomUurJHieVHMWFGIHofEC+nU6pGIUh0P7Nr0Gz45GJTwWGd
hW53WfImja+b5kwwyqUikyMCAwEAAQ==
-----END PUBLIC KEY-----
encrypt
$ openssl rsautl -encrypt -pubin -inkey enc_key.pem -in test.txt -out enc.txt -pkcs
decrypt
$ cargo r -- pgp-card-decrypt -c $(cat enc.txt | xxd -ps -c 11111)
sign
sign
$ cargo r -- pgp-card-sign -2 $(shasum -a 256 test.txt | awk '{print $1}')
verify
$ openssl dgst -sha256 -verify sign_key.pem -signature sig test.txt
Verified OK
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:
Languages
Rust
99.9%
Just
0.1%