bmphermitcrab.h
来自「利用BMP存储图像的冗余」· C头文件 代码 · 共 43 行
H
43 行
#pragma once
/*
Description: this class help you to hide a file in a bmp file.
Principle : it refer to http://www.codeproject.com/useritems/HideIt.asp article.
it using the pixel color micro-changed, and we almost can't feel it.
with our bulit binary table, we can put it.
the code has none remark for the principle.
if you want to know more detail information, please refer to
http://www.codeproject.com/useritems/HideIt.asp article and its code.
Author: origin arithmetic is from Ahmed Osama.
this code is from Neil Xu.
Restrict: please keep the origin declare in your applicaiton.
Limited: we don't test in all kind of BMP file formats, so we don't ensure
it does work well for all kind of BMP file formats.
*/
class CBmpHermitCrab
{
public:
CBmpHermitCrab(void);
~CBmpHermitCrab(void);
private:
static char* m_binaryMap[];
static WORD m_wHermitCrabFlag;
typedef struct tagHERMITCRAB_HEAD {
WORD wFlag;
BYTE bPasswordLen;
BYTE bFileNameLen;
int iFileLength;
} HERMITCRAB_HEAD, *LPHERMITCRAB_HEAD;
public:
bool Hermit(const char* pszDestFileName,const char* pszSrcFileName,const char* pszPassword=NULL,const char* pszResultFile=NULL);
bool IsHermitCrabBMPFile(const char* pszFileName);
bool RecoverCrabFile(const char* pszFileName,const char* pszPassword=NULL,const char* pszPath=NULL);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?