catacomb/pwsafe.py: Use `binascii' for Base64 conversion.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 21 Oct 2019 17:26:39 +0000 (18:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 Nov 2019 17:43:08 +0000 (17:43 +0000)
commita3869542180f9bff989afc5b5f56e0930bc41991
tree19a134f8a203cce9a479a9bfb196ee4c8dc38103
parentb1f8a1a1b30987f472b67bf3a10bc6b1ab4170a1
catacomb/pwsafe.py: Use `binascii' for Base64 conversion.

The `.encode()' and `.decode()' string methods were apparently too
convenient, so Python 3 doesn't do Base64 conversion like this.
Instead, we have to use the steam-powered `binascii'.  And, to make
things even better, encoding produces `bytes' rather than `str' because,
err, it's not really text or something?  No idea.  Stoats.
catacomb/pwsafe.py