Encrypt message in html file

Hello. How you can encrypt a message using as a container HTML file,
that is, the message must be recorded in the gaps that HTML ignores.

On 07.01.2010 12:50, Gregory Biasky wrote:

Hello. How you can encrypt a message using as a container HTML file,
that is, the message must be recorded in the gaps that HTML ignores.

HTML has no “gaps”, in the sense that content is ignored.

The only way to transfer a cyphertext in HTML would be the tag,
which is ignored if a browser, or rather HTML rendering engine, cannot
make sense of it (it’s still available if you look in the HTML source).

Content in the is displayed as best as possible by the
rendering engine.

This is, however, not cryptography, but a very poor man’s steganography,
in the first place.

This is probably better placed on the security-basics mailing list[0],
rather than ruby-talk, too.

[0] http://www.securityfocus.com/archive/105/description

Gregory Biasky wrote:

it does not address the problem of safety, it is a task for the
demonstration of shorthand, using as a container, not the image of a
html file. In general, how to find a whitespace and insert there the
encrypted information, that is the question *?

You could put it in comments, or encode it as whitespace characters, or
use a fake tag.
Note that this has nothing to do with Ruby and so is off topic here.

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

it does not address the problem of safety, it is a task for the
demonstration of shorthand, using as a container, not the image of a
html file. In general, how to find a whitespace and insert there the
encrypted information, that is the question *?

On 07.01.2010 16:14, Gregory Biasky wrote:

it does not address the problem of safety, it is a task for the
demonstration of shorthand, using as a container, not the image of a
html file. In general, how to find a whitespace and insert there the
encrypted information, that is the question *?

“string with_a_space”.gsub " ",“some_other_text_maybe_encrypted”

That does not, however, hide your text.

BTW: shorthand is not steganography (you were talking about the latter
in your OP).