[Ssc-dev] Fwd: [Martusvmm] IOCipherCamera example project

Nathan of Guardian nathan at guardianproject.info
Tue Jun 3 23:37:55 EDT 2014


Progress on in-app fully encrypted cameras.

-------- Original Message --------
Subject: 	[Martusvmm] IOCipherCamera example project
Date: 	Tue, 03 Jun 2014 23:37:06 -0400
From: 	Nathan of Guardian <nathan at guardianproject.info>
To: 	martusvmm at lists.guardianproject.info
<martusvmm at lists.guardianproject.info>



I've made good progress extracting our simple "JustPay" in-app camera,
and merging it with our existing IOCipher sample project. This work is
to provide a means for Martus (or any app), to offer a simple built-in
"secure camera" option with its own built-in encrypted storage
mechanism, with no dependency on any external app. It also avoids the
issues with using the built-in unencrypted camera on the device, namely
the issues of leaving all the unencrypted original media lying around in
random places.

In this sample, you can take a totally encrypted "Selfie" that grabs the
bytes directly from the front facing camera without it every writing to
any external file, and then save it directly into an IOCipher encrypted
file system. There is quite a bit more that could be done to offer some
better camera controls, such as enable auto focus, choosing size, etc...
that is all possible, it is just UI work.

There is also working video recording support, though it has a two
limitations. 1) It only can record in MPEG_TS format (.ts files,
currently 640x480, 30fps, at a high bitrate) which cannot be directly
played back on the device without converting it to MP4 (ffmpeg -i
source.ts out.mp4), and 2) it currently only supports video only without
audio, though I think that is something that can be fixed, or is a
device specific bug.

Finally, the sample also shows how to use a ContentProvider to allow
access by other parts of your app and/or external apps to directly read
the photo and video from the encrypted storage WITHOUT first copying it
to another file. This bit of code is working very well!

At this point, we mostly need to test the robustness of the video
support on different devices, and see if we can do anything about the
two issues mentioned above. Still this is big progress, and the code is
in a decent place.

https://github.com/n8fr8/IOCipherCameraExample

Thanks to Harlo, Hans, Josh, Mikael, Shawn and Abel (wherever he is),
for their previous work on this problem. Definitely made my life easier!

+n
_______________________________________________
Martusvmm mailing list

Post: Martusvmm at lists.mayfirst.org
List info: https://lists.mayfirst.org/mailman/listinfo/martusvmm

To Unsubscribe
        Send email to:  Martusvmm-unsubscribe at lists.mayfirst.org
        Or visit: https://lists.mayfirst.org/mailman/options/martusvmm/nathan%40guardianproject.info

You are subscribed as: nathan at guardianproject.info





More information about the Ssc-dev mailing list