Property | Type | Description | |
---|---|---|---|
StaticKey | byte[] |
Method | Description | |
---|---|---|
Crypt ( string msg, byte key, bool encrypt ) : string |
Encrypt/Decrypt a given message with a given key.
|
|
Decrypt ( byte data, int offset, byte key ) : byte[] |
Decrypt a byte array with a given key.
|
|
Encrypt ( byte data, int offset, byte key ) : byte[] |
Encrypt a byte array with a given key.
|
|
GenerateDecExpKey ( byte key ) : byte[] |
Generate the expanded key that will be used during decryption.
|
|
GenerateKey ( ) : byte[] |
Generate a random 16 bytes AES key.
|
Method | Description | |
---|---|---|
Crypt ( byte data, int offset, byte orgkey, bool encrypt ) : byte[] | ||
SwapBytes ( byte buffer, int len, int c ) : void |
public static Crypt ( string msg, byte key, bool encrypt ) : string | ||
msg | string | msg to encrypt/decrypt |
key | byte | aes key to use |
encrypt | bool | true: message will be encrypted. false: message will be decrypted. |
return | string |
public static Decrypt ( byte data, int offset, byte key ) : byte[] | ||
data | byte | bytes to decrypt |
offset | int | |
key | byte | aes key to use |
return | byte[] |
public static Encrypt ( byte data, int offset, byte key ) : byte[] | ||
data | byte | bytes to encrypt |
offset | int | |
key | byte | aes key to use |
return | byte[] |
public static GenerateDecExpKey ( byte key ) : byte[] | ||
key | byte | AES key to expand. |
return | byte[] |