Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
soledad
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leap
soledad
Commits
b847d0fa
Verified
Commit
b847d0fa
authored
8 years ago
by
drebs
Browse files
Options
Downloads
Patches
Plain Diff
[bug] encode key before using it in local blobs storage
parent
a2a41830
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!88
Attachments api
,
!87
#8800 #8812 #8845
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/src/leap/soledad/client/_database/blobs.py
+4
-1
4 additions, 1 deletion
client/src/leap/soledad/client/_database/blobs.py
with
4 additions
and
1 deletion
client/src/leap/soledad/client/_database/blobs.py
+
4
−
1
View file @
b847d0fa
...
...
@@ -20,6 +20,7 @@ Clientside BlobBackend Storage.
from
urlparse
import
urljoin
import
binascii
import
errno
import
os
import
base64
...
...
@@ -297,7 +298,9 @@ class SQLiteBlobBackend(object):
if
not
key
:
raise
ValueError
(
'
key cannot be None
'
)
backend
=
'
pysqlcipher.dbapi2
'
opts
=
sqlcipher
.
SQLCipherOptions
(
'
/tmp/ignored
'
,
key
)
opts
=
sqlcipher
.
SQLCipherOptions
(
'
/tmp/ignored
'
,
binascii
.
b2a_hex
(
key
),
is_raw_key
=
True
,
create
=
True
)
pragmafun
=
partial
(
pragmas
.
set_init_pragmas
,
opts
=
opts
)
openfun
=
_sqlcipherInitFactory
(
pragmafun
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment