I
I
Ilya Korol2019-11-03 21:20:08
Python
Ilya Korol, 2019-11-03 21:20:08

How to encode information into a certain number of characters?

There is information that needs to be encoded in the form of a certain small (10-15) number of characters of the English alphabet.
What kind of encryption can be used to encrypt and decrypt quickly but fairly securely?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Melnikov, 2019-11-03
@welcome32

There are only 26 letters in English. A total of 52 characters: 26 lowercase and 26 uppercase letters.
If there is no restriction on the encoded information (that is, we do not know what to expect), then we can simply specify our own text encoding, which will represent the bit stream of the encoded information in character form.
2⁵ < 52 < 2⁶. It follows that 52 characters is enough to encode every 5 bits (only 32 characters will be used) -- 5-bit encoding.
In 15 characters of such text, you can encode no more than 75 bits of information.
PS. The remaining 52 - 32 = 20 characters can be used to encode frequently occurring sequences of previously defined characters.

A
alternativshik, 2019-11-03
@alternativshik

no way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question