From 0b635af0bea461b487be2e5e274dbf9d184f4446 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 28 Jun 2022 20:39:59 +0800 Subject: [PATCH] bugfix --- appPublic/rsawrap.py | 2 +- appPublic/version.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/appPublic/rsawrap.py b/appPublic/rsawrap.py index 9e030a1..bf6f2d9 100644 --- a/appPublic/rsawrap.py +++ b/appPublic/rsawrap.py @@ -13,7 +13,7 @@ class RSA: def publickeyText(self,public_key): bd = public_key.save_pkcs1() - return bd.encode(self.coding) + return bd.decode(self.coding) def write_publickey(self,public_key,fname): bd = public_key.save_pkcs1() diff --git a/appPublic/version.py b/appPublic/version.py index 51b1082..a6cddf9 100644 --- a/appPublic/version.py +++ b/appPublic/version.py @@ -3,6 +3,8 @@ # add country name Chinese English convert functions # __version__ = '5.1.13' # replace cryptography with rsa module, because ONLY using rsa modulde in cryptography and cryptography not easy to compile for ios -__version__ = '5.1.14' +# __version__ = '5.1.14' # keep 5.1.14 version's change -__version__ = '5.1.15' +# __version__ = '5.1.15' +# keep 5.1.14 version's change +__version__ = '5.1.16'