Import/export of public keys with sharing interface
This is similar to but not quite the same as #802, which seems to be aimed at importing/exporting key files. And it may be violating rule 3, so apologies in advance if this is deemed too power-usery.
Importing/exporting public keys via the sharing interface would be useful for allowing people to easily construct alternative out-of-band verifications.
For example, for people who have verified PGP keys in the past, but are not now close enough to verify TextSecure keys:
- Share public key -> Sign/Encrypt with APG -> Share via Email/whatever
- Receive -> Verify/decrypt with APG -> Share to TextSecure, importing the key
Right now, you can export your fingerprint QR code, sign, send and have them verify and scan it, but it's not quite smooth, and the QR seems like a complicating step.
Another possibility is making a URI protocol that TextSecure is assigned to, like tsfpr:<PHONENUMBER>:<FINGERPRINT>. This would resolve the import problem altogether, and could resolve something like #1016 in passing.
For an example of the URI handling in APG: https://github.com/thialfihar/apg/blob/8f6a20fa0f8c479b34683fa0294471e5ddcab4a0/apg/src/main/AndroidManifest.xml#L272-L284
I agree, sharing your public key via other means would be much more secure. I would like to be able to select to export my key into much in the same manner mentioned (phone number + public key) so that I can send it to a friend and they can import it. In this manner, I can send them an encrypted text and their phone would immediately accept it (obviously, my friend would have to share theirs with me as well). I could then also publish my public key for others to look up.
Advanced users who already have another secure channel could make a screenshot of their fingerprint and send it encrypted the way they like. The goal of TS is not make it as complicated as PGP, and to quote moxie:
Engraved in 16 story letters on the side of the TextSecure World HQ building is our core mantra: "The answer is never more options."
I understand the philosophy, but given that NFC verification seems to be in the pipeline, the generalization to the sharing (intents?) interface would seem a neat solution to unify the QR and NFC channels.
I assume that the equivalent of 2014's "public keys" are "safety numbers" (2016). The sharing interface is now implemented in several ways
- https://github.com/WhisperSystems/Signal-Android/commit/b55a7ff5c05adc0b2e5c5c0b2b54f116f964cec3: Add copy and compare safety numbers from clipboard actions
- https://github.com/WhisperSystems/Signal-Android/commit/92aeafc26172fbbce036cdf99b82f8313acb204b: Add share button for safety numbers
So if I understand this issue correctly, it will be resolved.