Reputation: 9219
As far as I know Safari cookies are in binary format.
Is there a way to read them in a Cocoa Application?
Any pointers in this direction would be helpful.
Upvotes: 1
Views: 1015
Reputation: 9859
I wrote a parser for Swift that can do this for you. I needed this because NSHTTPCookieStorage.sharedHTTPCookieStorage()
doesn't give you access to the global cookies when sandboxed.
https://github.com/icodeforlove/BinaryCookies.swift
Upvotes: 2