Closed MarinX closed 2 years ago
Hey, this is extremely cool! I think it's a bit out of scope for this repository, also because I don't do gomobile development myself and wouldn't be in a good position to maintain it, but I would be happy to link to it from an upcoming list of age-related projects and integrations if it were a third-party module you host on your GitHub or elsewhere!
It's only a couple hundred lines of code, is it worth forking for that really?
It would not be a fork, this PR adds a whole separate package which doesn't have to be filippo.io/age/agemobile but can simply be github.com/MarinX/agemobile.
Thanks for the review and input 🙏
I understand your concerns. I will create a module for it and maintain it.
This PR adds
agemobile
package to support gomobile bind. Gomobile bind is limited by types and while it allows you to generate identity, you cannot encrypt/decrypt.With
agemobile
package, we can wrap encrypt/decrypt into supported types (string, bool) so it can be called from Android/iOS.Attached is an example of a real android device calling the android library(![age_mobile_example](https://user-images.githubusercontent.com/3714132/147511293-b4296572-0a2b-4cd6-853b-2b3ea6c288ca.gif)
age.aar
) to generate credentials and encrypt text.