Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Encryption

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Contents


Introduction

Valve uses encryption on its weapon script files in Counter-Strike: Source and Half-Life 2: Deathmatch. There is really only one reason for this and tahts to prevent clientside tampering of the weapons by modifying the amont of ammo or the player movement while equipped with a weapon. These files are found under the (mod folder)\scripts folder as ctx files.


To perform the this you will need this file: http://www.hl2world.com/bbs/dload.php?action=file&file_id=2615

This file goes into you %sorucesdk%\bin folder


Encrypting

%sourcesdk%\bin\vice.exe -x .abc -k xxxxxxxx "path\file.txt"

-x is stands for the encrypted file extension the standard is CTX, make sure you include the period before the extention

-k is the encryption key to decode the file in game. This key has to be 8 characters long using uper and lower case aphabet and numbers

Decrypting

%sourcesdk%\bin\vice.exe -d -x .txt -k xxxxxxxx "path\file.ctx"

-d designates that you are decrypting

-x is the file extension that the decrypted file is going to be

-k is designating the key that was used for exncryption

Valve keys

Game Key
HL2DM x9Ke0BY7
CS:S d7NSuLq2
DOD:S Wl0u5b3f


By: Omega552003

Personal tools