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'