RNCryptor-python
RNCryptor-python copied to clipboard
Python 3 compatibility: fix byte index access
The current code only works correctly under Python 2.
Apparently in Python 3 it's not possible to use data[1] to access a byte, instead we have to use data[1:2].
This pull request fixes this compatibility issue and it should still work correctly on both versions.