Class EncryptionResult
The result of encrypting some data using the Encrypt(byte[]) method. Contains the encrypted bytes and the key + initialization vector used for the encryption (you need those for decryption). Implements the IDisposable
Implements
Inherited Members
Namespace: GlitchedPolygons.Services.Cryptography.Symmetric
Assembly: GlitchedPolygons.Services.Cryptography.Symmetric.dll
Syntax
public class EncryptionResult : IDisposable
Properties
Empty
Gets a new empty EncryptionResult instance.
Declaration
public static EncryptionResult Empty { get; }
Property Value
| Type | Description |
|---|---|
| EncryptionResult |
See Also
EncryptedData
The encrypted data bytes.
Declaration
public byte[] EncryptedData { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
See Also
IV
The initialization vector.
Declaration
public byte[] IV { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
See Also
Key
The encryption key.
Declaration
public byte[] Key { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
See Also
Methods
Dispose()
Declaration
public void Dispose()
See Also
IsEmpty()
Checks whether this EncryptionResult instance is empty (all its fields null) or not.
Declaration
public bool IsEmpty()
Returns
| Type | Description |
|---|---|
| bool | Whether this EncryptionResult instance is empty (all its fields |