![]() ![]() ![]() ![]() This module is expected to be used with Python versions > 3.6, or Python 2.7 for legacy code. Plaintext = crypt(b64decode(encrpted_data_base64), "Error while decrypting")įile "c:\Users\Desktop\license.py", line 17, in įile "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\Cryptodome\Cipher\PKCS1_v1_5.py", line 180, in decryptįile "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\Cryptodome\PublicKey\RSA. import rsa import base64 Private key decryption def fun1 (): publicKey, privateKey rsa.newkeys (512) cipher rsa. Using this module, Python programs can encrypt and decrypt data, digitally sign documents and verify digital signatures, manage (generate, list and delete) encryption keys, using Public Key Infrastructure (PKI) encryption technology based on OpenPGP. I am making a license check where I will be encrypting the string text with private key and decrypting it with the public key, I know that it is not the standard way of decryption but I am trying to build in reverse manner for my project, the standard cryptodome library checks for private key while decryption and it returns an error and saying "not a private key", so any idea to fix it up? public_key = b64decode(pubkey) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |