[Share] CryptionRCC Source Code (for source developer).

OMG !! another epic shared came from you asendure !! thanks for this :) (feeling inlove LOOOOOL) hahaha
 
Better detail of the credits.

prisonmx : for giving the fresh source to me
seiferxiii : for forwarding the source to jdev
jdev
: for fixing the fresh code
 
these works 100% , dont just copy paste understand it also .

if its a snake it already bitten you

AsenDURE.ini/GameSet.ini
:

Code:
[GAME_SET] dwCryptKey = 0 or 1234567 (must not be same with ur crypt key in source)
bEngineDebug = 0
 
Can I Ask a question How Can I Add A existing project That I Put the ingenlib crypt.cpp and h?

Already Solved By Me :)

Want To edit Asendure.ini format?
Code:
#include "stdafx.h"
#include "Crypt.h"
#include "SUBPATH.h"
#include "GLOGIC.h"
#include "../Common/IniLoader.h"
#include "../Common/GLTexFile.h"


#ifdef _DEBUG
#define new DEBUG_NEW
#endif

namespace CCrypt
{
	BOOL	bCryptRCC = TRUE;
	BOOL	bEngineDebug = TRUE;

	void  LoadSetting( const TCHAR *szRootPath )
	{
		CString strFileName = szRootPath;
		strFileName += "\\[COLOR="#FF0000"]AsenDURE.ini[/COLOR]";

		CIniLoader cFILE;

		DWORD	dwKey = 0;
			
		if( cFILE.open( strFileName.GetString(), true) )
		{
			cFILE.SetUseErrorMsgBox( FALSE );

			cFILE.getflag ( "GAME_SET", "dwCryptKey", 0, 1, dwKey );
			cFILE.getflag ( "GAME_SET", "bEngineDebug", 0, 1, bEngineDebug );
		}
		else
		{
			CDebugSet::ToLogFile("CCrypt::LoadSetting Cant Load Setting File");
		}
		if ( dwKey == 7892756 )	bCryptRCC = FALSE;

	}

	void Encryption(BYTE *B ,int dwSize)
	{
		for( int i = 0 ; i < dwSize ; i ++ )
		{
			B[i] = B[i] ^ EN;
			B[i] += ( EN ^ EN2 );
		};
		return ;
	}
	void Decryption(BYTE *B,int dwSize)
	{
		for( int i = 0 ; i < dwSize ; i ++ )
		{
			B[i] -= ( EN ^ EN2 );
			B[i] = B[i] ^ EN;
		};
		return ;
	}
};
 
-----------------------------------------------
ERROR REPORT
-----------------------------------------------


Execution time : 2013-08-09 02:53:16
[2013-08-09 02:53:17] ERROR : CRanFilter::LOAD(), File Open moblogic1.bin

SAME
 
How to change CryptionRCC use REditor encryption rules :rolleyes:
 
Can you please tell me slowly .. I am still confused with which you explain ... if you are willing to petrify me .. I still have errors [2013-09-01 16:41:59] ERROR : CRanFilter::LOAD(), File Open moblogic1.bin
 
I got this error!

Problem solved

Linking...
CryptionRCCDlg.obj : error LNK2019: unresolved external symbol "void __cdecl CCrypt::Encryption(unsigned char *,int)" (?Encryption@CCrypt@@YAXPAEH@Z) referenced in function "public: int __thiscall CCryptionRCCDlg::FileEncryption(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >,class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >)" (?FileEncryption@CCryptionRCCDlg@@QAEHV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@0@Z)
CryptionRCCDlg.obj : error LNK2019: unresolved external symbol "void __cdecl CCrypt::Decryption(unsigned char *,int)" (?Decryption@CCrypt@@YAXPAEH@Z) referenced in function "public: int __thiscall CCryptionRCCDlg::FileDecryption(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >,class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >)" (?FileDecryption@CCryptionRCCDlg@@QAEHV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@0@Z)
 
Last edited:
Got Errors .. Linking..


EngineLib_Korea.lib(SerialMemory.obj) : error LNK2019: unresolved external symbol "void __cdecl CCrypt::Decryption(unsigned char *,int)" (?Decryption@CCrypt@@YAXPAEH@Z) referenced in function "public: int __thiscall CSerialMemory::OpenFile(char const *,char const *,bool,int)" (?OpenFile@CSerialMemory@@QAEHPBD0_NH@Z)
EngineLib_Korea.lib(StringMemory.obj) : error LNK2001: unresolved external symbol "void __cdecl CCrypt::Decryption(unsigned char *,int)" (?Decryption@CCrypt@@YAXPAEH@Z)
EngineLib_Korea.lib(SerialMemory.obj) : error LNK2001: unresolved external symbol "int CCrypt::bCryptRCC" (?bCryptRCC@CCrypt@@3HA)
EngineLib_Korea.lib(StringMemory.obj) : error LNK2001: unresolved external symbol "int CCrypt::bCryptRCC" (?bCryptRCC@CCrypt@@3HA)
MfcExLib_Korea.lib(RANPARAM.obj) : error LNK2019: unresolved external symbol "void __cdecl CCrypt::LoadSetting(char const *)" (?LoadSetting@CCrypt@@YAXPBD@Z) referenced in function "int __cdecl RANPARAM::LOAD(char const *,bool)" (?LOAD@RANPARAM@@YAHPBD_N@Z)
 
Got Errors .. Linking..


EngineLib_Korea.lib(SerialMemory.obj) : error LNK2019: unresolved external symbol "void __cdecl CCrypt::Decryption(unsigned char *,int)" (?Decryption@CCrypt@@YAXPAEH@Z) referenced in function "public: int __thiscall CSerialMemory::OpenFile(char const *,char const *,bool,int)" (?OpenFile@CSerialMemory@@QAEHPBD0_NH@Z)
EngineLib_Korea.lib(StringMemory.obj) : error LNK2001: unresolved external symbol "void __cdecl CCrypt::Decryption(unsigned char *,int)" (?Decryption@CCrypt@@YAXPAEH@Z)
EngineLib_Korea.lib(SerialMemory.obj) : error LNK2001: unresolved external symbol "int CCrypt::bCryptRCC" (?bCryptRCC@CCrypt@@3HA)
EngineLib_Korea.lib(StringMemory.obj) : error LNK2001: unresolved external symbol "int CCrypt::bCryptRCC" (?bCryptRCC@CCrypt@@3HA)
MfcExLib_Korea.lib(RANPARAM.obj) : error LNK2019: unresolved external symbol "void __cdecl CCrypt::LoadSetting(char const *)" (?LoadSetting@CCrypt@@YAXPBD@Z) referenced in function "int __cdecl RANPARAM::LOAD(char const *,bool)" (?LOAD@RANPARAM@@YAHPBD_N@Z)

make sure you follow the instructions carefully.. rebuild enginelib and build the cryptrcc
 
Back