diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-20 16:38:32 -0800 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-20 16:38:32 -0800 |
| commit | 898fe0f899eb3ec744acaaa0a8641644fc6cf219 (patch) | |
| tree | 27776a2146d71d6a36eef2d405d49057ef0a4e8a /cryptography | |
| parent | b29a6b2e4623fa87fecaccc05551b996f684cd53 (diff) | |
| download | cryptography-898fe0f899eb3ec744acaaa0a8641644fc6cf219.tar.gz cryptography-898fe0f899eb3ec744acaaa0a8641644fc6cf219.tar.bz2 cryptography-898fe0f899eb3ec744acaaa0a8641644fc6cf219.zip | |
Key in the right place
Diffstat (limited to 'cryptography')
| -rw-r--r-- | cryptography/fernet.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cryptography/fernet.py b/cryptography/fernet.py index 32bd35d5..ae3a8bfa 100644 --- a/cryptography/fernet.py +++ b/cryptography/fernet.py @@ -61,6 +61,7 @@ bool Cryptography_constant_time_compare(uint8_t *a, size_t len_a, uint8_t *b, class Fernet(object): def __init__(self, key, backend=None): super(Fernet, self).__init__() + key = base64.urlsafe_b64decode(key) assert len(key) == 32 self.signing_key = key[:16] self.encryption_key = key[16:] |
