[guardian-dev] Sharing encrypted content with other apps

Hans-Christoph Steiner hans at guardianproject.info
Wed Jan 29 12:06:07 EST 2014



On 01/28/2014 08:49 PM, Mark Murphy wrote:
> On Tue, Jan 28, 2014, at 17:25, Mark Murphy wrote:
>> On Tue, Jan 28, 2014, at 17:13, David Holl wrote:
>>> b) Another idea --- getting back to the clever pipe approach...  It would
>>> be cool if unix socket URI's are available, such as
>>> "unix:///tmp/data/blah.txt" or "socket:///tmp/data/blah.txt" or whatever
>>> the URI scheme is.
>>
>> AFAIK, that's not available at the Java layer, and definitely would not
>> be recognized by arbitrary third-party apps.
> 
> I was wrong about Unix sockets being available at the Java layer, as
> that's LocalSocket and LocalServerSocket, I think. And, you can use
> those to create a FileDescriptor:
> 
> http://stackoverflow.com/questions/21072763/a-localsocket-unix-domain-client-server-data-flow-issue-for-mediarecorder-in-a
> 
> However, I suspect this will suffer from the same rewind problem as
> createPipe() does.

One hack to solve the rewind issue that we've plotted out is to implement
seekable HTTP streams.  That works for seekable video playback from IOCipher
at least.

.hc

-- 
PGP fingerprint: 5E61 C878 0F86 295C E17D  8677 9F0F E587 374B BE81


More information about the Guardian-dev mailing list