Show / Hide Table of Contents

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 Source

Empty

Gets a new empty EncryptionResult instance.

Declaration
public static EncryptionResult Empty { get; }
Property Value
Type Description
EncryptionResult
| Improve this Doc View Source

EncryptedData

The encrypted data bytes.

Declaration
public byte[] EncryptedData { get; set; }
Property Value
Type Description
System.Byte[]
| Improve this Doc View Source

IV

The initialization vector.

Declaration
public byte[] IV { get; set; }
Property Value
Type Description
System.Byte[]
| Improve this Doc View Source

Key

The encryption key.

Declaration
public byte[] Key { get; set; }
Property Value
Type Description
System.Byte[]

Methods

| Improve this Doc View Source

Dispose()

Overwrites the Key and IV bytes with zeros.

Declaration
public void Dispose()
| Improve this Doc View Source

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 null) or not.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX