Class Blowfish
- Namespace
- ArcanaDevelopment.adTempus.Shared
- Assembly
- ArcanaDevelopment.adTempus.Shared.dll
Class that provides blowfish encryption.
public class Blowfish
- Inheritance
-
objectBlowfish
Constructors
Blowfish(byte[])
Constructs and initializes a blowfish instance with the supplied key.
public Blowfish(byte[] key)
Parameters
| Name | Type | Description |
|---|---|---|
key |
byte[] | The key to cipher with. |
Methods
Decipher(byte[], int)
Decrypts a byte array in place.
public void Decipher(byte[] data, int length)
Parameters
| Name | Type | Description |
|---|---|---|
data |
byte[] | The array to decrypt. |
length |
int | The amount to decrypt. |
Encipher(byte[], int)
Encrypts a byte array in place.
public void Encipher(byte[] data, int length)
Parameters
| Name | Type | Description |
|---|---|---|
data |
byte[] | The array to encrypt. |
length |
int | The amount to encrypt. |