Posts

Post not yet marked as solved
1 Replies
I was able to figure out an answer. If anyone wanted to take a look at it and recommend any improvements to it as it is likely there are better ways to use the various frameworks involved.At least one flaw I can see with my solution is I believe I am making more requests on the database than are strictly necessary, but I am not sure what the solution to this potential problem is.The commit is at: EricG-Personal/grdb_test@79cc048
Post not yet marked as solved
2 Replies
I am only looking for best practices here. The 2018 WWDC video discussing this only spent a few moments on the topic and only specifically mentioned that one need to be careful with permissions if the file was stored on disk. For Unix based system, I would imagine that one would use 0600.For macOS, using the Keychain seems to be the most natural place to keep it. I wasn't sure if there was some other way to store the private key in the Keychain other then pretending that it is just a rather long password.There are plenty of good libraries out there that can communicate with the keychain and keep the key in memory so it never needs to be written to disk when actually accessed.