Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Cat-x.dll - Security class

cats addicted
Loyal Member
Joined
Apr 1, 2010
Messages
1,364
Reaction score
293
Little helper dll for people in need of encrypted strings like for networking etc.
Or for people that want do hook their product to a specific machine (HWUUID).

This dll gives access to those functions:

- sha256 hash of a string (example: string x = cat-x.Sha256("examplestring"); )
- sha512 hash of a string (example: string x = cat-x.Sha512("examplestring"); )
- Md5 hash of a string (example: string x = cat-x.Md5("examplestring"); )
- Rijandel encrypting and decrypting a string by passphrase (example: string x = cat-x.Encrypt("examplestring","examplepassword"); / string x = cat-x.Decrypt("encryptedstring","examplepassword"); )
- getting a hardware uuid based on encrypted string from hardware ids (example: string x = cat-x.GetHardwareUUID(); )
- getting a real random number between 2 numbers based on unixtime as seed (example: string x = cat-x.GetRealRandom(1,100); )

Example for network packages:

string networkkey = "undefinedexamplerandomnetworkkeyforsecuringyournetworkstream";
string packet = "data123456789"
packet = cat-x.Encrypt(packet,networkkey);
byte[] data = Encoding.ASCII.GetBytes(packet);

... send data now. Received bytes can get decrypted the same way. Encoding to string, decrypting by networkkey then use ...

There is also a GetVersion function that shows current version of the dll but this is more for later when i added stuff to this dll :wink:

Hope it helps someone. If you need the source you can either decompile (its .NET 5 ... so no thing to decompile) or check my signature (the unity version of it is source and most of the functions are included also ).
 

Attachments

You must be registered for see attachments list
Back
Top