monich / harbour-foilauth

Secure OTP (One-Time Password) generator for Sailfish OS
https://openrepos.net/content/slava/foil-auth
Other
11 stars 7 forks source link

Save or share export QR code? #35

Open attah opened 1 year ago

attah commented 1 year ago

I think it would be a nice feature to be able to further export the QR code by sharing or saving as an image. Do you agree, and would it be something that is possible to add?

My concrete use-case would be printing the codes as offline backups.

Thanks for all your nice apps!

monich commented 1 year ago

Hmm, not sure - saving a QR code to the gallery would essentially store the OTP secret on the device in plain text, which sort of defies the purpose of the app.

attah commented 1 year ago

Yes, indeed... so i completely agree that it is iffy. But arguably, so would taking a screenshot - it would just look like crap when printed.

Maybe let's see what happens here: https://forum.sailfishos.org/t/sharing-image-from-messages-does-not-work-conceptual-problem-with-sharing-files-in-place/14985

In the best of worlds we'd get a place/method to share files "privately", but i'm not counting on it happening fast.

I guess i could add a bespoke dbus method to accept the data straight from dbus in SeaPrint to make it a bit less at-risk. But such tight integration between apps isn't as nice as something generic/universal.