[guardian-dev] NetCipher Book Chapter, and HTTP Stack Integration

2016-02-24 Thread Mark Murphy
I have written a chapter for _The Busy Coder's Guide to Android
Development_ on the use of NetCipher. Along the way, I wrote integration
code to tie NetCipher into:

- OkHttp3 (including using it with Retrofit)
- HttpURLConnection
- Apache's independent packaging of HttpClient
- Volley

Here is the draft chapter, in PDF form:

https://commonsware.com/misc/NetCipher.pdf

One section is missing towards the end (you'll see a "TBD" there), but
it is otherwise complete. Forgive the sidebars, but since this is a new
chapter, it gets those on the first book update containing the chapter.

Here is a ZIP file containing the sample project and HTTP integration
code:

https://commonsware.com/misc/HTTPStacks.zip

When I ship the book update containing this chapter in the second half
of March, I'll release a copy of this chapter under a Creative Commons
license. Also, the HTTP integration code is all Apache License 2.0; you
are welcome to any of that if you want it.

I welcome any feedback on the prose or the code!

-- 
Mark Murphy (a Commons Guy)
https://commonsware.com | https://github.com/commonsguy
https://commonsware.com/blog | https://twitter.com/commonsguy
___
List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
To unsubscribe, email:  guardian-dev-unsubscr...@lists.mayfirst.org


Re: [guardian-dev] Storing blobs over 1MB in SQLite?

2016-02-24 Thread Dominik Schuermann
Hey,

Thanks for detailed explanations of IOCipher internals. I appreciate that!

- Dominik

On 02/23/2016 06:46 PM, Hans-Christoph Steiner wrote:
> 
> 
> Nathan of Guardian:
>>
>>
>> On Tue, Feb 23, 2016, at 10:14 AM, Dominik Schuermann wrote:
>>> Is there a way in general to store blobs over 1MB inside Android's
>>> default SQLite? At OpenKeychain we reached that limit, and I don't like
>>> to redesign everything just because of this corner case:
>>> https://github.com/open-keychain/open-keychain/issues/1714
>>>
>>> I am open for suggestions :) Maybe you guys have an idea, how is this
>>> done in IOCipher?
>>
>> IOCipher does this automatically. It was the reason we developed it - to
>> securely store large media files for apps like CameraV and Courier. It
>> works well enough that you can stream into it, which we do for recording
>> or playing back video and audio.
>>
>> Hans made the brilliant discovery of Libsqlfs:
>> https://github.com/guardianproject/libsqlfs
>> that was originally built for Palm OS.
>>
>> IOCipher = SQLCipher + Libsqlfs + a java.io.File-style API.
>>
>> +n
> 
> sqlfs works like many filesystems and stores files in blocks.  In
> IOCipher, an 8192 byte block size is used.  So SQLite only ever sees
> 8192 byte binary blobs.
> 
> .hc
> 
> 



signature.asc
Description: OpenPGP digital signature
___
List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
To unsubscribe, email:  guardian-dev-unsubscr...@lists.mayfirst.org


[guardian-dev] Orbot v15.1.2 released

2016-02-24 Thread Nathan of Guardian
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

/** 15.1.2 / 24-February-2016 / 204733a245d6c06fa73301134e2f107c0c4564b8
**/

APK: https://guardianproject.info/releases/Orbot-v15.1.2.apk
SIG: https://guardianproject.info/releases/Orbot-v15.1.2.apk.asc

... and up on FDroid, Play, etc shortly

5785593 move to using meek_lite mode from obfs4client and update/improve
proxying code
66a5b7a remove meek-client and use obfs4 meek_lite mode instead
f9f33a1 set this to Android 16 SDK for PIE executable We'll use a
different build for non-PIE < Android-16
e9d28a4 handle NPE better for dev.gp.info #6686 in some cases the
connection becomes null while you are interacting with it
9a8e4dd update to orbot ant build version
80e8c47 peg to last ant compat release
5eb628b bridges dedicated to GeorgeTorwell
c8584f6 update superuser commands library
3cc2439 update license to include badvpn
9c82aa8 fix escaping of apostro
eba95b2 update strings and descs from transifex (somehow french got left
out before!)
8047ec6 update the log

- - --
  Nathan of Guardian
  nat...@guardianproject.info

-BEGIN PGP SIGNATURE-
Version: Mailvelope v1.3.6
Comment: https://www.mailvelope.com

wsFcBAEBCAAQBQJWzch8CRCoARg+abN6qQAAMdkP/1gD7imknTnBJqUQz+oV
a+a3DuFqTeTWSj+ZM5Cc6v25iDj0pOy/dobWi6MibNpWDF4Zr8ZWeSNnImz6
QrS+eBKkhRnL4DZmkCGo6FxSaxEEisCYcTyXHk34Ti7+3fslMZ/SuvbIrOyD
ZFIvBK31Tmf/uj/34kJaYG3hT+qceSCtrjyPEz+Bvb7MTl4mSREGeRiG6gvR
j68Wua/ERXIN+kEhJNrPPrP5eohaeU9/c3YuTJ3QKwU/Dbc0Zzrz1HNFd9wM
D1xDs+Dgz6rihqKN1ybzDsC7qezI2ALkSq6WKUQ6PMmF+BGMJcgW2B25FSGN
KT/ywmcQn24EhyknaZFmMze3oB4Mc+NDAAJHmOiF5sgi6oIdqvJzO06SwUfH
ApbWZ4aaLPzjBptPTUl4oWulbRlhtHBfDE+8+447VP5Ejrgkzxnk4NLGRsXx
vSE9jd5t23OXro5rEizJBplPqQCKUriS7RY3HYKaMkf/mU8u6Mo/XWMk5S9P
dxh++RXhsVV8UtmP5iSywiQdsFxUaCXQ8u5OhauxAhFgZu3cFDgU/Z7f5Yv/
guV/6sGQM4k3fSnjsRh7fDFn0DV+vWoe5gPy3fPrbB+MuHkYZNwBq4XovU6E
MF/ugs2Itu9uVjUhSiObzr0gixT0ALtQPujHRfow/srd1V1/IDkV1/kgUL7M
N5nR
=fPac
-END PGP SIGNATURE-
___
List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
To unsubscribe, email:  guardian-dev-unsubscr...@lists.mayfirst.org