Reputation: 31090
I don't know too much about encryption, I just want to ask, which method can get me the shortest result message ?
For instance, the message looks like this : "This is the secret input message", I wonder if the encrypted message can be shorter then the above 32 characters long ? Maybe something like "dfkfjkvf12".
Frank
Upvotes: 0
Views: 268
Reputation: 41388
If you want the output to be shorter than the input, you're not really talking about encryption. What you're talking about is compression or, more likely, hashing. If you just want a secure way to compare a known text with a ciphertext (such as for password exchange, for example), then there are any number of hashing schemes you can use, the most well-known of which is probably MD5.
Upvotes: 2
Reputation: 888027
It is mathematically impossible for the ciphertext to be shorter than the plaintext.
In general, longer ciphertexts mean securer cipers.
Upvotes: 1