You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
765 B
C++
35 lines
765 B
C++
/*******************************************************************
|
|
* @file InterfaceFileUtility.cpp
|
|
* @brief
|
|
*
|
|
* @author JDF
|
|
* @date October 2023
|
|
*********************************************************************/
|
|
#include "stdafx.h"
|
|
#include "FileUtility.h"
|
|
/**
|
|
* @brief Îļş±àÂë
|
|
*
|
|
* @param inputPath
|
|
* @param outputPath
|
|
* @return
|
|
*/
|
|
extern "C" __declspec(dllexport)
|
|
bool EncodeFile(LPCTSTR lpSrcFilePath, LPCTSTR lpDstFilePath)
|
|
{
|
|
return XorEncryptFile(lpSrcFilePath, lpDstFilePath);
|
|
}
|
|
|
|
/**
|
|
* @brief Îļş½âÂë
|
|
*
|
|
* @param lpSrcFilePath
|
|
* @param lpDstFilePath
|
|
* @return
|
|
*/
|
|
extern "C" __declspec(dllexport)
|
|
bool DecodeFile(LPCTSTR lpSrcFilePath, LPCTSTR lpDstFilePath)
|
|
{
|
|
return XorEncryptFile(lpSrcFilePath, lpDstFilePath);
|
|
}
|