Show / Hide Table of Contents

Class HashingServiceBase

A hashing service base.

Inheritance
System.Object
HashingServiceBase
SHA256HashingService
Implements
IHashingService
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
public abstract class HashingServiceBase : IHashingService

Methods

| Improve this Doc View Source

CreateHashAlgorithm(IContext)

Creates the hash algorithm.

Declaration
protected abstract HashAlgorithm CreateHashAlgorithm(IContext context)
Parameters
Type Name Description
IContext context

The context.

Returns
Type Description
System.Security.Cryptography.HashAlgorithm

The new hash algorithm.

| Improve this Doc View Source

GetSaltedValue(Byte[], Byte[])

Gets salted value.

Declaration
protected virtual byte[] GetSaltedValue(byte[] value, byte[] saltBytes)
Parameters
Type Name Description
System.Byte[] value

The value to be hashed.

System.Byte[] saltBytes

The salt bytes (optional).

Returns
Type Description
System.Byte[]

The salted value.

| Improve this Doc View Source

Hash(Byte[], IHashingContext)

Hashes the value with the optionally provided string.

Declaration
public virtual byte[] Hash(byte[] value, IHashingContext hashingContext = null)
Parameters
Type Name Description
System.Byte[] value

The value to be hashed.

IHashingContext hashingContext

Optional. Context for the hashing.

Returns
Type Description
System.Byte[]

The hashed value.

Implements

IHashingService

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>)
HashingServiceExtensions.Hash(IHashingService, String, IHashingContext)
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