Skip to content

C# Usage

stel-la edited this page Aug 16, 2020 · 1 revision

Install

Add Downtable Encryption to your C# files (.NET recommended).

Download and move

Download downtable.cs from the releases page and move it into your solution folder.

Create and use

Create a variable and allow it to use Downtable Encryption. This will define Downtable and allow it for use in your C# project. var downtable = new downtable();

Usage Inline

After creating a variable, either call downtable.encrypt(data, key); to encrypt data using the key provided.

data - Data to encrypt. It has to be a string. key - Key to encrypt with. It has to be string.

Example

> downtable.encrypt("Hello World!", "Secret Code");
Output: "S3:e1:S1:S1:r1:e7:e13:r1: 1:S1:r0:S5:"

Separation only happens with the : character and cannot be anything else. Furthermore, an encryption key cannot contain a :. You can process the data afterwards to allow it to include :, or update the scripts to allow usage of :. You can use : in data.

To decrypt the data use downtable.decode(data, key); to do just that.

data - Encrypted version of data. Has to be submitted as a string. key - The key used to decrypt the data. Has to be the same key that was used to encrypt it.

Clone this wiki locally