Answer the question
In order to leave comments, you need to log in
Can the encrypted string get smaller?
There is a line "Hi, Vasya. Your password: Rembobo3020. Login?))".
Is there an option to encrypt it so that in the end it was something like "R% & FMJ11", that is, shorter than the original in terms of the number of characters?
Answer the question
In order to leave comments, you need to log in
In theory, maybe. For example, encode with a dictionary, where 1 dictionary element encodes more than 1 letter. But in this case there can be no talk of optimality.
Here . See lossless compression algorithms. Although I don’t think it will be possible to compress the string so much, unless there are a lot of repeating letters.
By the number of characters is unlikely. By the number of bits per character - you can.
More complex compression algorithms on such short strings are most likely unrealistic.
But you can also try the algorithm with a dictionary, naturally both should have the same dictionaries tailored to your conversations. And if this hits the "enemy", the probability of decryption will decently increase.
write in caps and Latin, the alphabet will decrease from 256 to 60 and you can already try there
GPG uses compression first and only then encryption. As a result, GPG encrypted data is usually smaller than the original.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question