8000 updating distribution · Sjith/android-database-sqlcipher@709e9f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 709e9f8

Browse files
committed
updating distribution
1 parent c2aa11c commit 709e9f8

File tree

4 files changed

+29
-18
lines changed

4 files changed

+29
-18
lines changed

dist/SQLCipherForAndroid-SDK/README

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11

2-
SQLCipher for Android - 0.0.6-BETA - Developer Preview 3
2+
SQLCipher for Android v1 (0.0.6-RC1)
33
2011/10/29
44

55
CHANGELOG
6+
- includes icu44 data file for devices without it built-in ( < 2.2)
67
- complete support for original Android SQLite/database package APIs
78
- improved platform support through unified library (less lib .so files)
89
- added support for CrossProcess Cursors
910
- now support Observers/callbacks
1011

11-
CURRENT SUPPORT
12+
CURRENT TESTED PLATFORM SUPPORT
1213

1314
Android 2.1 (SDK Level 7)
1415
Android 2.2 (SDK Level 8)
1516
Android 2.3 (SDK Level 9)
1617
Android 2.3.3 (SDK Level 10)
1718
Android 3.0 (SDK Level 11)
1819
Android 3.1 (SDK Level 12)
19-
Android 3.2 (SDK Level 13 - only emulator tested)
20+
Android 3.2 (SDK Level 13)
2021

2122
HOW TO
2223

@@ -29,21 +30,30 @@ HOW TO
2930

3031
and you are secured!
3132

32-
You will need to implement some sort of PIN or password entry user interface to your application, as well.
33+
You will need to implement a passcode entry user interface to your application, as well. The longer the passcode, the better.
3334

3435
ABOUT
3536

3637
More info and source code at:
3738
https://guardianproject.info/code/sqlcipher/
3839
http://sqlcipher.net
3940

40-
Or email:
41+
Or contact us:
4142
root@guardianproject.info
43+
#guardianproject on freenode
4244

4345
EXPORT CONTROL
4446

45-
This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See <http://www.wassenaar.org/> for more information.
46-
47-
The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.
47+
This distribution includes cryptographic software. The country in which you currently reside may have restrictions
48+
on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any
49+
encryption software, please check your country's laws, regulations and policies concerning the import, possession,
50+
or use, and re-export of encryption software, to see if this is permitted. See <http://www.wassenaar.org/> for more
51+
information.
52+
53+
The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as
54+
Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing
55+
cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution
56+
makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception
57+
(see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.
4858

4959
More information is available here: https://guardianproject.info/home/export-information/
Binary file not shown.
-21.6 KB
Binary file not shown.

dist/SQLCipherForAndroid-SDK/samples/basic/example/SQLDemoActivity.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@ public void onCreate(Bundle savedInstanceState) {
2626
//then you can open the database using a password
2727
SQLiteDatabase db = eventsData.getWritableDatabase(password);
2828

29-
addEvent("Hello Android Event", password);
30-
Cursor cursor = getEvents(password);
29+
for (int i = 1; i < 100; i++)
30+
addEvent("Hello Android Event: " + i, db);
31+
32+
db.close();
33+
34+
db = eventsData.getReadableDatabase(password);
35+
36+
Cursor cursor = getEvents(db);
3137
showEvents(cursor);
3238

3339
db.close();
@@ -39,20 +45,15 @@ public void onDestroy() {
3945
eventsData.close();
4046
}
4147

42-
private void addEvent(String title, String password) {
43-
SQLiteDatabase db = eventsData.getWritableDatabase(password);
48+
private void addEvent(String title, SQLiteDatabase db) {
4449

4550
ContentValues values = new ContentValues();
4651
values.put(EventDataSQLHelper.TIME, System.currentTimeMillis());
4752
values.put(EventDataSQLHelper.TITLE, title);
4853
db.insert(EventDataSQLHelper.TABLE, null, values);
49-
5054
}
5155

52-
private Cursor getEvents(String password) {
53-
SQLiteDatabase db = eventsData.getReadableDatabase(password);
54-
55-
56+
private Cursor getEvents(SQLiteDatabase db) {
5657

5758
Cursor cursor = db.query(EventDataSQLHelper.TABLE, null, null, null, null,
5859
null, null);
@@ -72,4 +73,4 @@ private void showEvents(Cursor cursor) {
7273

7374
Log.i("sqldemo",ret.toString());
7475
}
75-
}
76+
}

0 comm 3080 it comments

Comments
 (0)
0