RSA encrypted data block size

Posted by calccrypto on Stack Overflow See other posts from Stack Overflow or by calccrypto
Published on 2010-05-03T22:05:41Z Indexed on 2010/05/03 22:08 UTC
Read the original article Hit count: 205

Filed under:
|
|

how do you store an rsa encrypted data block? the output might be significantly greater than the original input data block size, and i dont think people waste memory by padding bucket loads of 0s in front of each data block. besides, how would they be removed? or is each block stored on new lines within the file? if that is the case, how would you tell the difference between legitimate new line and a '\n' char written into the file?

what am i missing? im writing the "write to file" part in python, so maybe its one of the differences between:

open(file,'w')
open(file,'w+b')
open(file,'wb')

that i dont know. or is it something else?

© Stack Overflow or respective owner

Related posts about cryptography

Related posts about rsa