The famous Huffman encryption usually produces smaller, but sometimes bigger ciphertexts. But common algorithms like Triple-ROT13 should keep the same size! :P
Seriously, smaller isn't possible since you'd lose data (Usually you can't compress entropy) - And bigger... no one would want to use that since we have better alternatives which don't bloat the ciphertext. In some cases you have to add padding till a multiple of the blocksize, but since it is added to the plaintext they still remain the same size. Asymmetric encryption often adds heaps of bloat but that's a different story. Andy Lewis wrote: > Hello, > > I`d like to know, after encrypting PlainText in any of BlockCipher/in > any of mode, are CipherText and PlainText always same length? Or are > there some modes or ciphers, which produce CipherText, that is longer/ > shorter that PlainText? > > -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com.
