I wasn’t aware NSData had initWithBase64EncodedString/Data: and base64EncodedString/DataWithOptions: … apparently since macOS 10.9 even!