Possible to Store some hidden binary data in Word Document????????????

A

Ahmad

hi!

is it possible to store some binary data into the Word document using
VBA or C++. Actually i have to store some binary data read from some
files into the word document through my Word Plugin. This binary data
will be hidden from the user. Other people will not be able to access
it. only my Addin will access it. This binary data may be placed once,
twice, or more inside the Word document.

Anybody have idea about it.

Thanks.

Ahmad
 
W

Word Heretic

G'day "Ahmad" <[email protected]>,

Usually custom document properties or document variables are used.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Ahmad reckoned:
 
A

Ahmad

Thanks Steve!

I know about document variables. i have used them before. but the
problem is that a programmer can get count of document variables and
can iterate through the variables using index number and can see data
inside and can also delete it. Any idea to restrict the hacker from
doing that.
By the way i don't have idea about custom document properties. can you
plz further explain about custom document properties.

Thanks again.

Ahmad
 
A

Ahmad

I have tested Document Variable. but unfortunately it stores on few
KBs. i stored 124KB or data it worked fine. but when i tried to store
254KB of data into the document variable. it generated an exception
that "String value too long". Is there any restriciton in the data
length of document variable. and further more is there any restriction
in the number of Variables per document?

Thanks in advance.

Ahmad Jalil Qarshi
 
H

Howard Kaikow

Ahmad said:
Thanks Steve!

I know about document variables. i have used them before. but the
problem is that a programmer can get count of document variables and
can iterate through the variables using index number and can see data
inside and can also delete it. Any idea to restrict the hacker from
doing that.
By the way i don't have idea about custom document properties. can you
plz further explain about custom document properties.

Anything you can put in a document, a VBA programmer can find.
 
W

Word Heretic

G'day "Ahmad" <[email protected]>,

Variables are exactly that, variables restricted by the definition of
the datatype. Eg strings of 255. Generally speaking, you can save long
ranges of data as autotext, or you have to work on concat strings

Eg


while variable of name DocVarStem & k exists
concat it into some temp range
inc k
wend


You may also need Steganography - the practice of hiding stuff in
plain sight to fool the 'hackers' for as long as possible. It is off
topic for these newsgroups. I have commercially viable solutions for
achieving it, but they are extremely expensive.


Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Ahmad reckoned:
 

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

Top