You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+276-7Lines changed: 276 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,54 @@ Python client for interacting with the OnlyKey.
4
4
5
5
OnlyKey-cli - A command line interface to the OnlyKey that can be used for configuration (Similar functionality to [OnlyKey App](https://docs.crp.to/app.html))
6
6
7
+
<!---
8
+
PGPMessage - **Still in early development.** - Provides a tool for decrypting and signing OpenPGP/GPG messages using OnlyKey (python only OpenPGP implementation).
9
+
10
+
11
+
12
+
## Run without installation (Packaged App)
13
+
14
+
### Mac OS Run without installation
15
+
16
+
Tested on El Capitan
17
+
18
+
Pre-compiled packaged apps have been provided here:
If decryption is successful the ASCII armored version of the message will be displayed. If decryption fails the message "Error with RSA decryption" will be displayed.
432
+
433
+
### Sign text email message using OnlyKey
434
+
435
+
If you using a previously set RSA private key with signing capabilities you can sign text messages in OpenPGP/GPG format:
436
+
437
+
```
438
+
$ PGP_message.py
439
+
```
440
+
441
+
`Do you want to sign or decrypt a message?`
442
+
`s = sign, d = decrypt`
443
+
```
444
+
s
445
+
446
+
Enter RSA key slot number to use (1 - 4) or enter 0 to list key labels
447
+
448
+
1
449
+
You should see your OnlyKey blink 3 times
450
+
451
+
Trying to read the public RSA N part 1...
452
+
453
+
Key Size = 512
454
+
455
+
Do you want to sign a text message or add signature to a PGP Message?
456
+
t = text message, p = PGP Message
457
+
458
+
t
459
+
460
+
Type or paste the text message, press return to go to new line, and then press Ctrl+D or Ctrl+Z (Windows only)
461
+
462
+
this message is from me!
463
+
464
+
You should see your OnlyKey blink 3 times
465
+
466
+
Sending the payload to the OnlyKey...
467
+
468
+
Please enter the 3 digit challenge code on OnlyKey (and press ENTER if necessary)
469
+
4 2 3
470
+
471
+
Trying to read the signature from OnlyKey
472
+
For RSA with 4096 keysize this may take up to 9 seconds...
If signature is successful the ASCII armored version of the message will be displayed. If signature fails the message "Error with RSA signature" will be displayed.
499
+
500
+
### Add a signature to a PGP message using OnlyKey
501
+
502
+
If you using a previously set RSA private key with signing capabilities you can sign text messages in OpenPGP/GPG format:
503
+
504
+
```
505
+
$ PGP_message.py
506
+
```
507
+
508
+
`Do you want to sign or decrypt a message?`
509
+
`s = sign, d = decrypt`
510
+
```
511
+
s
512
+
513
+
Enter RSA key slot number to use (1 - 4) or enter 0 to list key labels
514
+
515
+
1
516
+
517
+
You should see your OnlyKey blink 3 times
518
+
519
+
Key Size = 512
520
+
521
+
522
+
Do you want to sign a text message or add signature to a PGP Message?
523
+
t = text message, p = PGP Message
524
+
525
+
p
526
+
527
+
Paste OpenPGP Message, press return to go to new line, and then press Ctrl+D or Ctrl+Z (Windows only)
If signature is successful the ASCII armored version of the message will be displayed. If signature fails the message "Error with RSA signature" will be displayed.
575
+
576
+
## PGPMessage Support
577
+
578
+
Install w/PGPMessage support. Requires Python 2.7 and Git.
0 commit comments