File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
- ** django-sqlcipher**
1
+ # django-sqlcipher
2
2
3
3
SQLCipher is an SQLite extension that provides transparent 256-bit AES encryption of database files.
4
4
@@ -8,33 +8,40 @@ This app does it for you. You only need to specify the database key in your proj
8
8
9
9
For more about SQLCipher take a look at [ http://sqlcipher.net/ ] ( http://sqlcipher.net/ ) .
10
10
11
- ** Requirements**
11
+ ## Requirements
12
12
13
13
* python-sqlcipher (Python compiled with SQLCipher support)
14
14
15
15
For more about python-sqlcipher take a look at:
16
16
17
17
[ https://code.launchpad.net/~jplacerda/+junk/python-sqlcipher ] ( https://code.launchpad.net/~jplacerda/+junk/python-sqlcipher )
18
18
19
- ** Installation**
19
+ ## Installation
20
20
21
21
` pip install git+http://github.com/codasus/django-sqlcipher#egg=sqlcipher `
22
22
23
23
Or manually place it on your ` PYTHON_PATH ` .
24
24
25
- ** Configuration**
25
+ ## Configuration
26
26
27
27
Open your project's ` settings.py ` file and:
28
28
29
29
1 . Append ` sqlcipher ` to your ` INSTALLED_APPS ` .
30
30
31
31
2 . Set your database engine to ` sqlcipher.backend ` .
32
32
33
- 3 . Put the following line where you want :
33
+ 3 . Optionally, type your key into your settings file ( ** unsafe ** ) :
34
34
35
35
` PRAGMA_KEY = "YOUR DATABASE KEY" `
36
36
37
- ** MIT License**
37
+ You may not wish to expose your encryption key in a file.
38
+ django-sqlcipher ships with custom management commands that will prompt
39
+ for the key when invoking ` runserver ` and ` migrate ` , however you
40
+ should consider how you want to set ` django.conf.settings.PRAGMA_KEY `
41
+ at runtime in your production environment.
42
+
43
+
44
+ ## MIT License
38
45
39
46
<pre >Copyright (c) 2011 Caio Ariede and Codasus Technologies.
40
47
You can’t perform that action at this time.
0 commit comments