encrypt message in html file

G

Gregory Biasky

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.
 
P

Phillip Gawlowski

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 <meta /> 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 <body /> 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
 
G

Gregory Biasky

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 *?
 
P

Phillip Gawlowski

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).
 
M

Marnen Laibow-Koser

Gregory said:
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
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top