This repository was archived by the owner on Sep 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -139,37 +139,38 @@ PRAGMAs
139139### PRAGMA rekey
140140- it's wrapper around [ sqlite3_rekey_v2] ( #sqlite3_rekey-sqlite3_rekey_v2 )
141141- example usage: ` PRAGMA rekey='passphrase'; `
142+ - example of decrpyting: ` PRAGMA rekey=''; `
142143
143144Tutorials
144145----------
145146
146147### Encrypting a new db
147148``` c
148- open
149- key
149+ open // <-- db is still plain text
150+ key // <-- db is now fully encrypted
150151use as usual
151152```
152153
153154### Opening an encrypted DB
154155``` c
155- open
156- key
157- use as usual
156+ open // <-- db is fully encrypted
157+ key // <-- db is still fully encrypted
158+ use as usual // <-- read/written pages are fully encrypted and only decrypted in-memory
158159```
159160
160161### Changing the key
161162``` c
162- open
163- key
164- rekey
165- use as usual
163+ open // <-- db is fully encrypted
164+ key // <-- db is still fully encrypted
165+ rekey // <-- db is still fully encrypted
166+ use as usual
166167```
167168
168169### Decrypting
169170``` c
170- open
171- key
172- rekey with null
171+ open // <-- db is fully encrypted
172+ key // <-- db is still fully encrypted
173+ rekey with null // <-- db is now fully decrpyted to plain text
173174use as usual
174175```
175176
You can’t perform that action at this time.
0 commit comments