diff options
| author | 2020-02-24 13:28:23 +0000 | |
|---|---|---|
| committer | 2020-02-24 13:28:23 +0000 | |
| commit | fc32a907a5bc791b4a24d6586e171f64cf8943f0 (patch) | |
| tree | 471c554e81455b095227d21a4b49da828700f5e0 /src/utils | |
| parent | change encrypted channel logs to use RSA -> AES (CBC) (diff) | |
| signature | ||
use "latin-1" consitently (not "iso-8859-1")
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/security.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/security.py b/src/utils/security.py index 0e54a439..085826d5 100644 --- a/src/utils/security.py +++ b/src/utils/security.py @@ -49,7 +49,7 @@ def rsa_encrypt(key_filename: str, data: bytes) -> str: out = key.encrypt(data, a_padding.OAEP( mgf=a_padding.MGF1(algorithm=hashes.SHA256()), algorithm=hashes.SHA256(), label=None)) - return base64.b64encode(out).decode("iso-8859-1") + return base64.b64encode(out).decode("latin-1") from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.primitives import padding |
