H
H
Huntgold2021-04-04 17:02:32
Programming
Huntgold, 2021-04-04 17:02:32

Is it possible and how to split any file into code and assemble it again?

We know that any picture and any other file is a set of 1 and 0. Is it possible, for example, to split the same archive into a code of any kind, that is, the entire archive and information inside will be stored in plain text and, if necessary, "compile" this code back (text)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Korotenko, 2021-04-04
@firedragon

Cut into pieces according to how many bytes you need and then glue them together. This was done by the diskdupe utility back in the days of DOS

R
Roman Mirilaczvili, 2021-04-04
@2ord

To get text output, any file can be converted to Base64 and split into pieces of the desired size. Then glue and decode from Base64 on the recipient.
True, it is worth considering that when encoding the latter, the size relative to the original increases by 33%.
Added
There are other encoding methods: UUE and not only.

S
Saboteur, 2021-04-04
@saboteur_kiev

No.
You do not understand the meaning of what a "set of 0 and 1" is and what it is to split the code into text and compile back into code.
That is, your question was asked incorrectly, and you must first figure out what it is and how the picture differs from the file.
Then you can ask a question that you can understand the answer to.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question