New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can Themis be used from a Swift project on Linux? #198
Comments
Well, Themis works on Linux, and Themis works on iOS Swift via ObjC bridging headers. I believe there shouldn't be any issues that prevent Themis to work directly in Swift projects :) If you have any experience in building module map around C core, could you help us? Our Linux-gur @mnaza can help with any core-related issues. |
TR;DL Yes. Themis can be used from a Swift project on Linux
all other Themis functions can be imported to Swift by same way. |
Thank you, @mnaza! I think we should consider building "pure Swift" wrapper for those who use Swift on server. |
Thank you, @mnaza Really appreciate your effort 👍 |
@mnaza, it feels like @popaaaandrei will need to know some internals to succeed in his goal (e.g. understanding the sequence of C Themis calls to get correct results). If you've went the most of the way already, maybe you can invest a few minutes to draft out the rest of the functions? Style-inferiority and "Swift-ness" is something @vixentael and @popaaaandrei (if he wants to) can easily correct, but if @popaaaandrei's goal is to use "secure data exchange", that's Secure Session, and it may be not very trivial to write a wrapper for it without really good understanding of how it works. Maybe you could invest some more time on this and push this to /wrappers/? |
Thank you all for support! |
wow, can you share it please @popaaaandrei |
First is the C module required. Second is a test project with key generation and encryption + decryption. Works on Thank you all! |
I didn't know how to suppress the |
I create Themis wrapper for Swift for Linux for all Themis primities (except Secure Comparator, for now): @popaaaandrei , @vixentael , check it please. Note: wrapper include |
... it would be great when you finish polishing this, come up with distribution scheme that doesn't involve 3 repos, and document things properly ;) |
I can only confirm that Secure Message (both modes encrypt/decrypt and sign/verify) works for me bi-directionally between an Ubuntu endpoint and an iOS app. Thank you @mnaza |
Great to hear! Thanks for your help and bringing this up. |
Thank you guys, I've separated issue about making Swift Themis better into separate issue (#226) |
Hello,
Can anyone tried integrating Themis library in a Swift project on Linux?
Theoretically it should work by creating a module map around the C++ library but has anyone succeeded?
I want to exchange data securely between iOS and a Vapor backend deployed on Ubuntu.
Thank you!
The text was updated successfully, but these errors were encountered: