1.
Several key fields are encrypted and stored in the database.
2.
Encrypt the entire database.
SQLite database encryption tool:
Charging tool:
SSE(SQLite
encrypt
Extended)
Free tools:
SQLCipher
SQLCipher uses:
SQLCipher is a completely open source software, providing 256 bits.
AES encryption
Source code compilation:
1.
OpenSSL compilation
The compilation of SQLCipher source code needs to rely on libcrypto provided by OpenSSL.
Download the OpenSSL source code, and select the stable version 1.0. 1h here.
1
openssl- 1.0. 1h
Management cost
. /config
-Prefix =/usr/local
- openssldir=/usr/local/openssl
2
openssl- 1.0. 1h
Management cost
manufacture
three
openssl- 1.0. 1h
Management cost
manufacture
test
four
openssl- 1.0. 1h
Management cost
manufacture
fix
2.
SQLCipher source code compilation
Download address: /sqlcipher/sqlcipher
1
sqlcipher
Management cost
. /configuration
- enable-tempstore=yes
CFLAGS="-DSQLITE_HAS_CODEC "
LD flags = "/usr/local/lib/lib crypto . a "
2
sqlcipher
Management cost
manufacture
Command line use:
1.
Create an encrypted database
Copy code
1
$
sqlcipher
Encrypted. db
2
SQLCipher
version
3.8.4.3
20 14-04-03
16:53: 12
three
enter
".Help"
for
instruction
"Send a postcard to Tiangong Space Station: as long as 19 yuan?"
"China Aerosp