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 IDisposable

Inheritance
object
EncryptionResult
Implements
IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
IDisposable

EncryptedData

The encrypted data bytes.

Declaration
public byte[] EncryptedData { get; set; }
Property Value
Type Description
byte[]
See Also
IDisposable

IV

The initialization vector.

Declaration
public byte[] IV { get; set; }
Property Value
Type Description
byte[]
See Also
IDisposable

Key

The encryption key.

Declaration
public byte[] Key { get; set; }
Property Value
Type Description
byte[]
See Also
IDisposable

Methods

Dispose()

Overwrites the Key and IV bytes with zeros.

Declaration
public void Dispose()
See Also
IDisposable

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

See Also
IDisposable

Implements

IDisposable

See Also

IDisposable
Back to top Generated by DocFX