![]() Tmp_text = encrypt_block('1'+tmp_text,block_size,e,n) #add '1' so I don t loose left zeros If(len(tmp_text)=text_size): #when a block is complete Tmp_text = "" #variable for holding current block ![]() Text_size = block_size - 5 #size of clear text blocks My encryption code: block_size = len(bin(n-1)) - 2 #size of encrypted blocks While(len(tmp_text) ![]() I don't get any execution errors but the message I encrypt isn't the same when I decrypt. I already generate public/private keys but my encrypt/decrypt functions aren't working. I'm doing a work for school in which I've got to implement rsa generating of public/private keys and encryption/decryption of a binary message. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |