Encrypting textures

From VbGORE Visual Basic Online RPG Engine

This feature is for encrypt VbGore graphics.

[edit] Step One

Open ToolFileProcessor.exe In this tutorial I will use RC4 Algorithim so select the Algorithim RC4, put the key and the altered extension. The Unaltered Extension and Sub-Folder will be the default ("PNG" and "Grh\").

Image:encryptgraphics1.PNG

Click on "Compress / Encrypt"

[edit] Step Two

Open GameClient.vbp

In TileEngine>Sub Engine_Init_Texture, declare

Dim TempFile as String

Replace this:

   'Get the path
    FilePath = GrhPath & TextureNum & ".png"
 
    'Check if the texture exists
    If Engine_FileExist(FilePath, vbNormal) = False Then
        MsgBox "Error! Could not find the following texture file:" & vbNewLine & FilePath, vbOKOnly
        IsUnloading = 1
        Exit Sub
    End If

To this:

        'Get the path
    TempFile = GrhPath & TextureNum & ".enc" '<<<<PUT THE ALTERED EXTENSION
    FilePath = GrhPath & TextureNum & ".png"
 
 
    'Check if the texture exists
    If Engine_FileExist(TempFile, vbNormal) = False Then
        MsgBox "Error! Could not find the following texture file:" & vbNewLine & TempFile, vbOKOnly
        IsUnloading = 1
        Exit Sub
    End If
 
    'Decrypt the file
    Encryption_RC4_DecryptFile TempFile, FilePath, "key" '<<<<PUT THE ENCRYPT KEY

After End Sub Add

Kill FilePath

Example Image:

Image:encryptgraphics2.PNG

Special Thanks to onez0r

Personal tools