olm/python/olm
Damir Jelić 2f5590bf38 olm: Allow decryption functions to define how to handle unicode decode errors.
This patch changes the decryption functions not to fail if there was an
unicode decode error while converting the decrypted bytes plaintext into
a native python string.

Characters that cannot be decoded as unicode are now replaced with the
unicode replacement character (U+FFFD).

The old behaviour of raising an UnicodeDecodeError can be achieved by
passing the "strict" error handling scheme to the decrypt function.
2019-06-18 13:50:46 +02:00
..
__init__.py Merge pull request #86 from matrix-org/add_python_pk_signing 2019-04-12 19:21:17 -04:00
__version__.py prepare for 3.1.0 release 2019-04-17 17:31:01 -04:00
_compat.py compat: Add a method to convert bytes to a string that handles unicode errors. 2019-06-18 13:44:22 +02:00
_finalize.py python: Import improved python bindings. 2018-07-18 17:44:32 -04:00
account.py overwrite buffers that may contain sensitive data 2018-10-16 00:31:56 -04:00
group_session.py olm: Allow decryption functions to define how to handle unicode decode errors. 2019-06-18 13:50:46 +02:00
pk.py olm: Allow decryption functions to define how to handle unicode decode errors. 2019-06-18 13:50:46 +02:00
sas.py olm: Allow decryption functions to define how to handle unicode decode errors. 2019-06-18 13:50:46 +02:00
session.py olm: Allow decryption functions to define how to handle unicode decode errors. 2019-06-18 13:50:46 +02:00
utility.py olm: Allow decryption functions to define how to handle unicode decode errors. 2019-06-18 13:50:46 +02:00