Method | Description | |
---|---|---|
Decrypt ( this data, byte key, bool oneTimePad ) : byte[] |
Decrypts the data using a basic xor of the key (not very secure unless doing a one time pad)
|
|
Decrypt ( this data, string key, bool oneTimePad, |
Decrypts the data using a basic xor of the key (not very secure unless doing a one time pad)
|
|
Encrypt ( this data, byte key, bool oneTimePad ) : byte[] |
Encrypts the data using a basic xor of the key (not very secure unless doing a one time pad)
|
|
Encrypt ( this data, string key, bool oneTimePad, |
Encrypts the data using a basic xor of the key (not very secure unless doing a one time pad)
|
|
XOr ( this input, string key, |
XOrs two strings together, returning the result
|
Method | Description | |
---|---|---|
Process ( byte input, byte key ) : byte[] |
Actually does the encryption/decryption
|
public static Decrypt ( this data, byte key, bool oneTimePad ) : byte[] | ||
data | this | Data to encrypt |
key | byte | Key to use |
oneTimePad | bool | Is this a one time pad? |
return | byte[] |
public static Decrypt ( this data, string key, bool oneTimePad, |
||
data | this | Data to decrypt |
key | string | Key to use |
oneTimePad | bool | Is this a one time pad? |
encodingUsing | Encoding that the Data uses (defaults to UTF8) | |
return | string |
public static Encrypt ( this data, byte key, bool oneTimePad ) : byte[] | ||
data | this | Data to encrypt |
key | byte | Key to use |
oneTimePad | bool | Is this a one time pad? |
return | byte[] |
public static Encrypt ( this data, string key, bool oneTimePad, |
||
data | this | Data to encrypt |
key | string | Key to use |
oneTimePad | bool | Is this a one time pad? |
encodingUsing | Encoding that the Data uses (defaults to UTF8) | |
return | string |
public static XOr ( this input, string key, |
||
input | this | Input string |
key | string | Key to use |
encodingUsing | Encoding that the data uses (defaults to UTF8) | |
return | string |