mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Upgrade to cryptography 1.4
This commit is contained in:
parent
e7b8158d22
commit
69fc08f6f3
2 changed files with 3 additions and 3 deletions
|
@ -57,8 +57,8 @@ class EncryptedJournal(Journal.Journal):
|
|||
@classmethod
|
||||
def _create(cls, filename, password):
|
||||
key = make_key(password)
|
||||
dummy = Fernet(key).encrypt("")
|
||||
with open(filename, 'w') as f:
|
||||
dummy = Fernet(key).encrypt(b"")
|
||||
with open(filename, 'wb') as f:
|
||||
f.write(dummy)
|
||||
|
||||
|
||||
|
|
2
setup.py
2
setup.py
|
@ -86,7 +86,7 @@ setup(
|
|||
"cryptography==1.4",
|
||||
"tzlocal>=1.2",
|
||||
"pyyaml>=3.11",
|
||||
"keyring==7.3",
|
||||
"keyring>=7.3",
|
||||
"passlib>=1.6.2",
|
||||
"pyxdg>=0.25",
|
||||
] + [p for p, cond in conditional_dependencies.items() if cond],
|
||||
|
|
Loading…
Add table
Reference in a new issue