Show / Hide Table of Contents

Class NullEncryptionService

A null encryption service.

Inheritance
System.Object
NullEncryptionService
Implements
IEncryptionService
ISyncEncryptionService
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Cryptography
Assembly: Kephas.Core.dll
Syntax
[OverridePriority(Priority.Lowest)]
public class NullEncryptionService : IEncryptionService, ISyncEncryptionService

Methods

| Improve this Doc View Source

Decrypt(Stream, Stream, IEncryptionContext)

Decrypts the input stream and writes the decrypted content into the output stream.

Declaration
public void Decrypt(Stream input, Stream output, IEncryptionContext context = null)
Parameters
Type Name Description
System.IO.Stream input

The input stream.

System.IO.Stream output

The output stream.

IEncryptionContext context

The encryption context (optional).

| Improve this Doc View Source

DecryptAsync(Stream, Stream, IEncryptionContext, CancellationToken)

Decrypts the input stream and writes the decrypted content into the output stream.

Declaration
public Task DecryptAsync(Stream input, Stream output, IEncryptionContext context = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.IO.Stream input

The input stream.

System.IO.Stream output

The output stream.

IEncryptionContext context

The encryption context (optional).

System.Threading.CancellationToken cancellationToken

The cancellation token (optional).

Returns
Type Description
System.Threading.Tasks.Task

The asynchronous result.

| Improve this Doc View Source

Encrypt(Stream, Stream, IEncryptionContext)

Encrypts the input stream and writes the encrypted content into the output stream.

Declaration
public void Encrypt(Stream input, Stream output, IEncryptionContext context = null)
Parameters
Type Name Description
System.IO.Stream input

The input stream.

System.IO.Stream output

The output stream.

IEncryptionContext context

The encryption context (optional).

| Improve this Doc View Source

EncryptAsync(Stream, Stream, IEncryptionContext, CancellationToken)

Encrypts the input stream and writes the encrypted content into the output stream.

Declaration
public Task EncryptAsync(Stream input, Stream output, IEncryptionContext context = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.IO.Stream input

The input stream.

System.IO.Stream output

The output stream.

IEncryptionContext context

The encryption context (optional).

System.Threading.CancellationToken cancellationToken

The cancellation token (optional).

Returns
Type Description
System.Threading.Tasks.Task

The asynchronous result.

| Improve this Doc View Source

GenerateKey(IEncryptionContext)

Generates a key.

Declaration
public byte[] GenerateKey(IEncryptionContext encryptionContext = null)
Parameters
Type Name Description
IEncryptionContext encryptionContext

Optional. Context for the encryption.

Returns
Type Description
System.Byte[]

An array of byte.

Implements

IEncryptionService
ISyncEncryptionService

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
EncryptionServiceExtensions.EncryptAsync(IEncryptionService, String, IEncryptionContext, CancellationToken)
EncryptionServiceExtensions.EncryptAsync(IEncryptionService, Byte[], IEncryptionContext, CancellationToken)
EncryptionServiceExtensions.Encrypt(IEncryptionService, String, IEncryptionContext)
EncryptionServiceExtensions.Encrypt(IEncryptionService, Byte[], IEncryptionContext)
EncryptionServiceExtensions.DecryptAsync(IEncryptionService, String, IEncryptionContext, CancellationToken)
EncryptionServiceExtensions.DecryptAsync(IEncryptionService, Byte[], IEncryptionContext, CancellationToken)
EncryptionServiceExtensions.Decrypt(IEncryptionService, String, IEncryptionContext)
EncryptionServiceExtensions.Decrypt(IEncryptionService, Byte[], IEncryptionContext)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX