S
S
sunnyyouyeyu65552015-03-28 15:41:20
Programming
sunnyyouyeyu6555, 2015-03-28 15:41:20

Is void encryption possible?

Is it possible to encrypt the absence of text using a symmetric key, or is it wrong from the point of view of mathematics or cryptography and there must be at least one character?
c332644cad1a4cb5b1b73b9814dda048.png

Answer the question

In order to leave comments, you need to log in

5 answer(s)
B
bobrovskyserg, 2015-03-28
@bobrovskyserg

Why is it impossible. And you can encrypt 0 bytes, and transfer.
No one will notice)))
The text encrypted with a block cipher is padded to an integer number of blocks (for example, 56 bits in DES).
In your case, we get 0 bytes.
In the case of streaming encryption, we have the same 0 bytes.
UPDATE
I meant to answer your question, but didn't explicitly state it.
I correct:
From the point of view of mathematics and cryptography, it is even more correct to encrypt the absence of text than its presence, since this encrypted message cannot be read in any way with an arbitrarily weak algorithm and encryption key.

S
Sergey, 2015-03-28
@edinorog

why encrypt the void when you can encrypt the noise?)

M
mace-ftl, 2015-03-28
@mace-ftl

A space is also a character that can be encrypted ...

A
Alexey Kos, 2015-03-28
@djalexsey

Yes, you can.

U
user4000, 2015-09-29
@user4000

Of course you can.
A file, which is an Array of byte, all elements of which are equal to zero, is the same ordinary file as other files, and why should it be discriminated against all of a sudden?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question