프로퍼티 | 타입 | 설명 | |
---|---|---|---|
StaticKey | byte[] |
메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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. |
리턴 | string |
public static Decrypt ( byte data, int offset, byte key ) : byte[] | ||
data | byte | bytes to decrypt |
offset | int | |
key | byte | aes key to use |
리턴 | byte[] |
public static Encrypt ( byte data, int offset, byte key ) : byte[] | ||
data | byte | bytes to encrypt |
offset | int | |
key | byte | aes key to use |
리턴 | byte[] |
public static GenerateDecExpKey ( byte key ) : byte[] | ||
key | byte | AES key to expand. |
리턴 | byte[] |