summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-09-12 13:48:53 -0500
committerKali Kaneko <kali@leap.se>2014-09-12 13:48:53 -0500
commitad8470843a0101e238342412259e60867b412e47 (patch)
tree0bf17630fd70e28f26e705ec2f0db024e49a2edd
parente42f5a80391f7a4cb3b1305990ab3842ac2bea53 (diff)
fix syntax for code blocks
-rw-r--r--README.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 5cc37a4..b51c397 100644
--- a/README.rst
+++ b/README.rst
@@ -12,6 +12,7 @@ It uses a sqlcipher amalgamation, see https://www.sqlite.org/amalgamation.html
Usage
-----
You have to pass the ``PRAGMA=key`` before doing any operations::
+
from pysqlcipher import dbapi2 as sqlite
conn = sqlite.connect('test.db')
c = conn.cursor()
@@ -22,6 +23,7 @@ You have to pass the ``PRAGMA=key`` before doing any operations::
c.close()
You can quickly verify that your database file in indeed encrypted::
+
hexdump -C test.db
ab 7f 61 7a 33 9d 07 f4 08 68 c9 b0 4f e3 34 60 |..az3....h..O.4`|
bb 9d 9c 3d 9e ce 69 57 b6 2f 36 c4 fd 13 bd 61 |...=..iW./6....a|