|
Arci.Networking
|
Aes encryptor More...
Public Member Functions | |
| AesEncryptor (AesEncryptionType type=AesEncryptionType.Aes128Bits) | |
| Creates AES instance More... | |
| AesEncryptor (byte[] key, byte[] iVec) | |
| Creates AES instance More... | |
| byte [] | Encrypt (string toEncrypt, Encoding encoding=null) |
| Encrypts data with current encryptor More... | |
| byte [] | Encrypt (byte[] toEncrypt) |
| Encrypts data More... | |
| string | Decrypt (byte[] toDecode, Encoding encoding) |
| Decrypts data More... | |
| byte [] | Decrypt (byte[] toDecode) |
| Decrypts data More... | |
| void | Dispose () |
| Clears allocated resources More... | |
Public Attributes | |
| byte [] | Key => aes.Key.ToArray() |
| Returns copy of the current aes key More... | |
| byte [] | IVec => aes.IV.ToArray() |
| Returns copy of the current aes iVec More... | |
| byte [] | Encryptors => aes.Key.Concat(aes.IV).ToArray() |
| Current encryptors. More... | |
Properties | |
| PaddingMode | PaddingMode [get, set] |
| Aes padding mode to be used More... | |
Aes encryptor
|
inline |
Creates AES instance
| type | Bit version type of Aes to be used |
|
inline |
Creates AES instance
| key | Key to be set as AES key |
| iVec | IVec to be set as AES iVec |
|
inline |
Decrypts data
| toDecode | Data to decrypt |
| encoding | Encoding type of string. If null provided then ASCII will be used |
|
inline |
Decrypts data
| toDecode | Data to decrypt |
Implements Arci.Networking.Security.ISymmetricEncryptor.
|
inline |
Clears allocated resources
|
inline |
Encrypts data with current encryptor
| toEncrypt | Data to encrypt |
| encoding | Encoding type of string. If null provided then ASCII will be used |
|
inline |
Encrypts data
| toEncrypt | Data to encrypt |
Implements Arci.Networking.Security.ISymmetricEncryptor.
| byte [] Arci.Networking.Security.AesEncryptor.Encryptors => aes.Key.Concat(aes.IV).ToArray() |
Current encryptors.
First 16/24/32 (based on AesEncryptionType) bytes represent key, last 16 bytes represent iVec
| byte [] Arci.Networking.Security.AesEncryptor.IVec => aes.IV.ToArray() |
Returns copy of the current aes iVec
| byte [] Arci.Networking.Security.AesEncryptor.Key => aes.Key.ToArray() |
Returns copy of the current aes key
|
getsetadd |
Aes padding mode to be used