Based on file header control documents content, realize the method for Information hidingTechnical field
The present invention relates to fileinfo process field, relate in particular to the Information hiding field with the binary file of file header information, specifically refer to a kind of method that realizes Information hiding based on file header control documents content.
Background technology
Along with the prosperity of network, much need to there be the audio-video document of copyright protection and picture file meeting stolen, thereby affect normal intellectual property protection.For some network information forms, need to carry out specific Information hiding in addition, only have by certain purview certification and just can see hiding real information later.For these use scenes, have now Information Hiding Techniques that a lot of robustnesss is strong especially such as:
(1) in text, between word and word, row with all have certain blank spaces in the ranks, the label information that can hide certain coding after these blank spaces are changed to be meticulously to identify copyright owner, and word content in file does not need to do any change.
(2) present laser printer has very high resolution, can make it to occur small displacement by control character, and human eye is very inresponsive to the minute differences of word space, line space, and present scanner can successfully detect this small displacement.We can obtain the image of printed matter in high resolving power ground with scanner, and find covert indicator wherein by suitable decoding algorithm.
(3) utilize the display characteristic of ascii character, the character not showing on CRT with those embeds in file as secret information, and general word processor can not read these information, and utilizes the computing of decoding of specific software can read secret information.
Above algorithm generally has some following problems:
1, hiding information cannot be too many, otherwise can cause on original file great impact;
2, hide Info and can change the content of information originally;
3, hide Info that to suffer restraints more single be all generally to hide simple bit data (0 and 1) to form;
4, hide Info be encrypted, obscure, the extendability such as compression is difficult to.
Summary of the invention
The object of the invention is to overcome the shortcoming of above-mentioned prior art, provide a kind of can realize by hiding Info, be placed on source file body matter after, guaranteed source file information integrity, only have source document otherwise cannot find hide Info, be applicable to large-scale promotion application based on file header control documents content, realize the method for Information hiding.
To achieve these goals, the method that realizes Information hiding based on file header control documents content of the present invention has following formation:
Should based on file header control documents content, realize the method for Information hiding, its principal feature is that described method comprises the following steps:
(1) the end position interpolation at source file body matter hides Info.
Preferably, described step (1) is afterwards, further comprising the steps of:
(2) in described document text content with between hiding Info, based on Obfuscating Algorithms, add middle scramble data.
Preferably, described step (1) is afterwards, further comprising the steps of:
(3) after described hiding Info, based on Obfuscating Algorithms, add ending scramble data.
Preferably, described hiding Info as picture, video, character string or text.
Preferably, described step (1) is before, further comprising the steps of:
(0) to be added hiding Info is encrypted, compresses, obscured or sign processing.
Preferably, described step (1) is afterwards, further comprising the steps of:
(4) according to the rule of the body matter length of original Obfuscating Algorithms, source file and definition position, determine the described position hiding Info;
(5) content of the described position hiding Info is processed and obtained the content hiding Info.
More preferably, the described content to the described position hiding Info is processed and is obtained the content hiding Info, and is specially:
Content to the described position hiding Info is decrypted, decompression, antialiasing or remove signature and process and obtain the content hiding Info.
Adopted and based on file header control documents content, realized the method for Information hiding in this invention, there is following beneficial effect:
(1) the method realizes simply, but safe, has extensibility flexibly;
(2) any information of destroying infection source file not, before and after Information hiding can there is not any variation in true content, guarantees the quality of source file;
(3) hiding Info can be the content of arbitrary format, includes but not limited to: picture, exe file, character string, text;
(4) can hiding information be encrypted flexibly, compresses, be obscured etc. other algorithm expansion;
(5) information such as size based on source file of obtaining that hide Info, so except non-owner source file otherwise be difficult to positioning searching to hiding Info, be applicable to large-scale promotion application.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of realizing the method for Information hiding based on file header control documents content of the present invention.
Fig. 2 is the composition structural representation that carries out file after Information hiding based on file header control documents content of the present invention.
Embodiment
In order more clearly to describe technology contents of the present invention, below in conjunction with specific embodiment, conduct further description.
The present invention mainly uses Information hiding with the binary file of file header information at some, is mainly in video file, picture, music file, to carry out the Information hiding of arbitrary format.Can be used for realizing to qualified file and add watermark, the integrality of verification file, data security function.
Not enough in order to make up in background technology; use is based on such a principle: as long as file header information does not change; so just can the body matter of file add arbitrarily hiding Info of arbitrary format below, and hide Info can be by random being encrypted, obscuring, compress and accomplish to protect the object hiding Info before adding.In order to protect, hide Info simultaneously; the hiding starting position that hides Info is that size by source document decides; and in the front and back that hide Info, add extra information protection and hide Info, so, only had source document otherwise can not find and hide Info.This invention so can never have influence on the information of source file, has guaranteed source file information integrity be put into source file information hiding Info after.
For the file with file header information, file header information control documents true content end position, if not changing, top of file information just not can not affect the demonstration of checking of source file, based on this principle, just can add self-defining hiding Info at the end position of this file, these hide Info can be any form, such as picture, video, character string, text etc., these hide Info and can also carry out other expansion simultaneously, such as encryption, compression, obscure, signature, thereby our algorithm that can also obscure according to some of the front and back that hide Info at these in addition produces some other information and hides and hide Info, and extract when hiding Info according to the true content length scale of original Obfuscating Algorithms and source file, and the rule of definition position is determined the position hiding Info, after finding the position hiding Info, just can get and hide Info, then carry out corresponding deciphering, decompress, antialiasing grade gets hiding information.
Principle based on invention can cryptographic algorithm, can be that symmetric cryptography can be also asymmetric encryption, and various compression algorithms also can self-definedly be selected, and implementation language is also unrestricted.
Only obtained source file and just can likely get hiding information, safe, the form hiding Info can be arbitrary format, hides Info and can carry out obscuring of any particular algorithms.
Adopted and based on file header control documents content, realized the method for Information hiding in this invention, there is following beneficial effect:
(1) the method realizes simply, but safe, has extensibility flexibly;
(2) any information of destroying infection source file not, before and after Information hiding can there is not any variation in true content, guarantees the quality of source file;
(3) hiding Info can be the content of arbitrary format, includes but not limited to: picture, exe file, character string, text;
(4) can hiding information be encrypted flexibly, compresses, be obscured etc. other algorithm expansion;
(5) information such as size based on source file of obtaining that hide Info, so except non-owner source file otherwise be difficult to positioning searching to hiding Info, be applicable to large-scale promotion application.
In this instructions, the present invention is described with reference to its specific embodiment.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, instructions and accompanying drawing are regarded in an illustrative, rather than a restrictive.