![]() ![]() You only get bytes out of it when you serialize those long integers. Why it is saying Message size too large ? Is there any better and fast way to decrypt large text files using pycrypto module ? To the point where it is outputting the block size of 32, it is decrypting right, but where it starts with 128, its messing up. Return (self, ciphertext)įile "/usr/lib/python3/dist-packages/Crypto/PublicKey/pubkey.py", line 93, in decryptįile "/usr/lib/python3/dist-packages/Crypto/PublicKey/RSA.py", line 237, in _decrypt so many 32 byte blocks it is decrypting, thenįile "/usr/lib/python3/dist-packages/Crypto/PublicKey/RSA.py", line 174, in decrypt ![]() ![]() When I try to decrypt the encrypted file, I need to read it with 128 byte block so as to give back 32 byte blocks, > f = open('enc','rb') The problem is when I try encrypting large files (10kB of text file) I take the block size of 32 byte when reading the file and encrypting it > f = open('10kb','rb') I have been using pycrypto module for encryption and decryption with RSA key pair and algorithm.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |