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
Inheritance
System.Object
EncryptionResult
Namespace: GlitchedPolygons.Services.Cryptography.Symmetric
Assembly: GlitchedPolygons.Services.Cryptography.Symmetric.dll
Syntax
public class EncryptionResult : IDisposable
Properties
| Improve this Doc View SourceEmpty
Gets a new empty EncryptionResult instance.
Declaration
public static EncryptionResult Empty { get; }
Property Value
Type | Description |
---|---|
EncryptionResult |
EncryptedData
The encrypted data bytes.
Declaration
public byte[] EncryptedData { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
IV
The initialization vector.
Declaration
public byte[] IV { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Key
The encryption key.
Declaration
public byte[] Key { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()
IsEmpty()
Checks whether this EncryptionResult instance is empty (all its fields null
) or not.
Declaration
public bool IsEmpty()
Returns
Type | Description |
---|---|
System.Boolean | Whether this EncryptionResult instance is empty (all its fields |