VICE
Vice is Valve's tool for ICE encryption, a trick used mainly to protect weapon script files from modification by server admins. Only its source code is included in the SDK, but you can download a precompiled build here. It must be placed in the SDK's bin\<engine>\bin\
folder to run.

GetEncryptionKey()
function. All keys must be eight characters long!Usage
Encryption:
"%sourcesdk%\bin\orangebox\vice" -x .ctx -k <your key> [.txt files, or * for all files in the current directory]
Decryption:
"%sourcesdk%\bin\orangebox\vice" -d -x .txt -k <your key> [.ctx files, or * for all files in the current directory]
Troubleshooting
Most users who try Steam will get a problematic SteamAppId error. This is due to Steam filesystem update inconsistency. It stripped one word from the gameinfo.txt and didn't notify anyone. In order to use these Steam applications you must go to the root folder of your mod or the game you want to modify, and change ToolsAppID to AppID. This will allow you to use both versions of vice and a few more programs like mdldecompiler. You must also make sure that your mod or game is selected in vconfig. If you edit your mod's gameinfo file and have Half-Life 2 selected in vconfig you will not be doing much.
If you are decrypting Valve games and not your own mods, then you will have to make this change each time you want to use vice or any other applications that give the same message. For each time you run say, Day of Defeat: Source, it creates a new GameInfo.txt file that still include Tools.
Alternatives
- Standalone Vice (doesn't require Steam)
- Red comet's Standalone Vice with wildcard support (Vice2)
- RavuAlHemio's Standalone Vice with improved wildcard support (Vice3)