logoalt Hacker News

cyberaxlast Thursday at 2:02 AM2 repliesview on HN

You don't need Swift to use the Keychain API. It's doable from pure C.


Replies

johncolanduonilast Thursday at 2:24 AM

In fact, SecurityFramework doesn’t have a real Swift/Obj-C API. The relevant functions are all direct bindings to C ABIs (just with wrappers around the CoreFoundation types).

show 1 reply
cronoslast Thursday at 3:21 PM

Good to know, my understanding of the macOS system APIs is fairly limited. I'm sure it's doable, with some elbow grease and CGO. We just haven't prioritized that variant of the client due to relatively low usage.

show 1 reply