<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
Just wanted to share news of the latest release candidate regarding
SQLCipher for Android. Thanks!<br>
<br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject: </th>
<td>SQLCipher for Android 2.0.0-RC5</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
<td>Tue, 3 Apr 2012 07:28:34 -0700 (PDT)</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
<td>Nick Parker <a class="moz-txt-link-rfc2396E" href="mailto:nparker@zetetic.net"><nparker@zetetic.net></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Reply-To:
</th>
<td><a class="moz-txt-link-abbreviated" href="mailto:sqlcipher@googlegroups.com">sqlcipher@googlegroups.com</a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:sqlcipher@googlegroups.com">sqlcipher@googlegroups.com</a></td>
</tr>
</tbody>
</table>
<br>
<br>
Hi folks,
<div><br>
</div>
<div>I just wanted to share the release of the latest release
candidate for SQLCipher for Android. The 2.0.0-RC5 build contains
three important additions to the library. With the inclusion of
the new sqlcipher core that adds HMAC page protection a few
additions were needed. We have added a method called
SQLiteDatabase.upgradeDatabaseFormatFromVersion1To2 which will
migrate your 1.x database to the new 2.0 format. Additionally, if
you need to maintain the existing format but wish to use the new
2.0 library we have added a SQLiteDatabaseHook interface that can
be provided to the SQLiteDatabase.openOrCreateDatabase call
providing both preKey and postKey events. As the name implies, if
provided this callback will be triggered before and after the
keying of the database. The following example would allow you to
open a 1.1 database using the 2.0 library.</div>
<div><br>
</div>
<div>
<div>SQLiteDatabaseHook hook = new SQLiteDatabaseHook(){</div>
<div> public void preKey(SQLiteDatabase database){</div>
<div> database.rawExecSQL("PRAGMA cipher_default_use_hmac =
off");</div>
<div> }</div>
<div> public void postKey(SQLiteDatabase database){}</div>
<div>}</div>
<div><br>
</div>
<div>SQLiteDatabase database =
SQLiteDatabase.openOrCreateDatabase(databasePath, password,
null, hook);</div>
</div>
<div><br>
</div>
<div>Finally, there is an overload to SQLiteDatabase.loadLibs that
allows you to pass a File which will be used as the location for
extracting the ICU dat file if it is not present on the device
(thanks jeffdcamp). This is especially useful on devices with
limited onboard storage, allowing you to move the ICU expansion to
an SD card. I have created a new binary package available below
[1]. Please take a look, we welcome any feedback. Thanks!</div>
<div><br>
</div>
<div>1.
<a class="moz-txt-link-freetext" href="https://github.com/downloads/sqlcipher/android-database-sqlcipher/SQLCipher%20for%20Android%202.0.0-RC5.zip">https://github.com/downloads/sqlcipher/android-database-sqlcipher/SQLCipher%20for%20Android%202.0.0-RC5.zip</a></div>
<div><br>
</div>
<div>Nick Parker</div>
</body>
</html>