Jump to content
  • 0
Sign in to follow this  
-TÜRK-

Weird Thing About HybridCrypt Encryption?

Question

Hi guys. I'm newbie in this forum not in developing of metin2 :). This forum is good idea I think. Because like EPVP etc forums, there is lot of players not developers, really idiots and kids you know..

 

I am using MakePack.exe (from official stuff)

 

As example, I create pack with some stuffs with HybridCrypt encryption okay.. (CSHybridEncryptExeNameList)

Im trying to unpack with unpackers, metin2dev_archiver, tims archiver etc. pack does not open (they can't find cipher-info key), this is very good.

 

BUT...

 

I put my handmade HybridCrypt pack into pack file. When I open client, client SUCCESSFULLY decrypting files and using even PackageCrypt infos not loaded?!!!

 

One more, while I make my handmade HybridCrypt pack, as the PackMaker sources pack maker must create HybridCrypt key file but MakePack does not create any key files?

 

Kind Regards...

Share this post


Link to post

16 answers to this question

Recommended Posts

  • 0

Here how Type 4 works:

 

- If you want to make a Type 4 protected archive you must use COMBINED or "4" as type.

- You can't use Type 4 on root, locale, uiscript and those files which gets loaded before the player logged in.

- You must make a new folder called package on your server, and you must put the generated cshybrid files in it.

Share this post


Link to post
  • 0

Thank you for answer sanchez...

 

here take a look:

 

 pack: d:/ymir work/ui/skillassassin.dds
 Write[type:4] d:/ymir work/ui/skillcommon.dds
 pack: d:/ymir work/ui/skillcommon.dds
 Write[type:4] d:/ymir work/ui/skillshaman.dds
 pack: d:/ymir work/ui/skillshaman.dds
 Write[type:4] d:/ymir work/ui/skillsura.dds
 pack: d:/ymir work/ui/skillsura.dds
 Write[type:4] d:/ymir work/ui/skillwarrior.dds
 pack: d:/ymir work/ui/skillwarrior.dds
 Write[type:1] d:/ymir work/ui/taskbar.tga
 pack: d:/ymir work/ui/taskbar.tga
 Write[type:4] d:/ymir work/ui/windows.dds
 pack: d:/ymir work/ui/windows.dds
 
here is a log from MakeScript.
 
also packmaker does not make any key files? (.dat ext: cshybrid )

Share this post


Link to post
  • 0

Also, as the Pack Maker sources he must make .dat file:

 

//make key file for CS hybrid crypt
std::string strCryptFileName = g_strFolderName + "/" + "cshybridcrypt_" + g_st_packName + ".dat";
 
packMgr->WriteHybridCryptPackInfo(strCryptFileName.c_str());

Share this post


Link to post
  • 0

I'm not using the Ymir archiver, but I think you must specify the files in CshHbridEncryptExeNamelist, like the CompressExtNameList

Share this post


Link to post
  • 0
FolderName "__pack"
PackName "../../ready_pc/__pack/item"

List SecurityExtNameList
{
	"txt"
	"msk"
	"msa"
	"msm"
	"mss"
	"mse"
	"msf"
	"spt"
	"py"
}

List CompressExtNameList
{
	"txt"
	"spt"
	"atr"
	"dds"
	"raw"
	"wtr"
	"mde"
	"tga"
}

List CSHybridEncryptExeNameList
{
	"dds"
	"raw"
	"gr2"
	"msm"
	"atr"	
}

List FileList
{
	"d:/ymir work/item/00001.msm"
	.................
}

You are specifiyng your file extension. Thats all. :)

My problem is still alive :/

 

packmaker does not create any key files.

Share this post


Link to post
  • 0
I have no idea of C++ but this looks wrong to me:
 
FolderName "__pack"
PackName "../../ready_pc/__pack/item"
 
shouldn't this be FolderName "../../ready_pc/__pack" and PackName "item"?
  • Love 1

Share this post


Link to post
  • 0

Woahh! 

 

I did big mistake! :) I found problem, thank Shogun.

FolderName "__pack"
PackName "ui"

Share this post


Link to post
  • 0

turk please do a post with a how to crypt with type 4.

 

Ty

 

King Regards Deadman

Share this post


Link to post
  • 0

@deadman use official pack maker. i didn't test type4 (panama)

Share this post


Link to post
  • 0

@deadman use official pack maker. i didn't test type4 (panama)

panama is type 3, type 4 is combined

Share this post


Link to post
  • 0

hhoYiNR.png

 

Ymir Protection binary +lib knowledgeable person looking for

  • Love 1

Share this post


Link to post
  • 0

Hybrid crypt load keys from server.

You can pack with hybrid crypt just files loaded after login/char_select.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.