Show / Hide Table of Contents

Interface IPasswordStorage

Defines a set of members that a type must implement to generate hashes from passwords that can be stored securely.

Namespace: TheXDS.MCART.Security
Assembly: MCART.Security.dll
Syntax
public interface IPasswordStorage

Properties

| Edit this page View Source

AlgId

Gets the algorithm name.

Declaration
string AlgId { get; }
Property Value
Type Description
string
| Edit this page View Source

KeyLength

Gets the number of key bytes this instance will generate.

Declaration
int KeyLength { get; }
Property Value
Type Description
int
| Edit this page View Source

Settings

Gets an object containing the algorithm configuration.

Declaration
object? Settings { get; }
Property Value
Type Description
object

Methods

| Edit this page View Source

ConfigureFrom(BinaryReader)

Obtains configuration from the specified block, advancing the reader by the number of bytes required by this instance's configuration.

Declaration
void ConfigureFrom(BinaryReader reader)
Parameters
Type Name Description
BinaryReader reader

Object from which configuration values are read.

| Edit this page View Source

DumpSettings()

Writes configuration values in binary format.

Declaration
byte[] DumpSettings()
Returns
Type Description
byte[]

A byte array that can be used to reconstruct the key‑derivation configuration for this instance.

| Edit this page View Source

Generate(byte[])

Generates a binary blob that can be stored in a database.

Declaration
byte[] Generate(byte[] input)
Parameters
Type Name Description
byte[] input

Password from which to derive a key.

Returns
Type Description
byte[]

A byte array containing the key derived from the specified password.

| Edit this page View Source

Generate(SecureString)

Generates a binary blob that can be stored in a database.

Declaration
byte[] Generate(SecureString input)
Parameters
Type Name Description
SecureString input

Password from which to derive a key.

Returns
Type Description
byte[]

A byte array containing the key derived from the specified password.

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX