This commit is contained in:
yumoqing 2022-06-28 20:39:59 +08:00
parent c923c1670d
commit 0b635af0be
2 changed files with 5 additions and 3 deletions

View File

@ -13,7 +13,7 @@ class RSA:
def publickeyText(self,public_key): def publickeyText(self,public_key):
bd = public_key.save_pkcs1() bd = public_key.save_pkcs1()
return bd.encode(self.coding) return bd.decode(self.coding)
def write_publickey(self,public_key,fname): def write_publickey(self,public_key,fname):
bd = public_key.save_pkcs1() bd = public_key.save_pkcs1()

View File

@ -3,6 +3,8 @@
# add country name Chinese English convert functions # add country name Chinese English convert functions
# __version__ = '5.1.13' # __version__ = '5.1.13'
# replace cryptography with rsa module, because ONLY using rsa modulde in cryptography and cryptography not easy to compile for ios # 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 # 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'