CapyKit Documentation
  • Introduction
  • Getting Started
  • API Reference
    • CapyKit
      • CapyEventArgs
      • CapyEventHandler
      • CapyEventReporter
      • Color
      • EncryptedValue<T>
      • EventLevel
      • IPasswordAlgorithm
      • NamedColor
      • Password
      • Pbkdf2Algorithm
      • PoolItem<T>
      • Pool<T>
      • PropertyComparer<T, U>
    • CapyKit.Attributes
      • EnumerationAttribute<T>
      • EnumerationDescriptionAttribute
      • ValueFormatAttribute
    • CapyKit.Enumerations
      • MeasurementSystem
    • CapyKit.Extensions
      • EnumerationExtensions
      • LINQExtensions
      • ObjectExtensions
      • StringExtensions
    • CapyKit.Helpers
      • CalculationHelper
      • CompressionHelper
      • EncryptionHelper
      • IEncryptionAlgorithm
      • KeyHelper
      • LanguageHelper
      • SecurityHelper
      • SerializationHelper
      • SettingsHelper
      • ValidCharacterCollection
Search Results for

    Show / Hide Table of Contents
    • Introduction
    • Getting Started
    • API Reference
      • CapyKit
        • CapyEventArgs
        • CapyEventHandler
        • CapyEventReporter
        • Color
        • EncryptedValue<T>
        • EventLevel
        • IPasswordAlgorithm
        • NamedColor
        • Password
        • Pbkdf2Algorithm
        • PoolItem<T>
        • Pool<T>
        • PropertyComparer<T, U>
      • CapyKit.Attributes
        • EnumerationAttribute<T>
        • EnumerationDescriptionAttribute
        • ValueFormatAttribute
      • CapyKit.Enumerations
        • MeasurementSystem
      • CapyKit.Extensions
        • EnumerationExtensions
        • LINQExtensions
        • ObjectExtensions
        • StringExtensions
      • CapyKit.Helpers
        • CalculationHelper
        • CompressionHelper
        • EncryptionHelper
        • IEncryptionAlgorithm
        • KeyHelper
        • LanguageHelper
        • SecurityHelper
        • SerializationHelper
        • SettingsHelper
        • ValidCharacterCollection

    Class Pbkdf2Algorithm

    Implements the PBKDF2 algorithm for password encryption.

    Inheritance
    object
    Pbkdf2Algorithm
    Implements
    IPasswordAlgorithm
    Namespace: CapyKit
    Assembly: CapyKit.dll
    Syntax
    public class Pbkdf2Algorithm : IPasswordAlgorithm

    Constructors

    Pbkdf2Algorithm()

    Default constructor.

    Declaration
    public Pbkdf2Algorithm()

    Fields

    ITERATIONS

    The default number of iterations.

    Declaration
    public const int ITERATIONS = 100000
    Field Value
    Type Description
    int
    Remarks

    This member is immutable.

    LENGTH

    (Immutable) The default length.

    Declaration
    public const int LENGTH = 32
    Field Value
    Type Description
    int
    Remarks

    This member is immutable.

    Properties

    AlgorithmName

    Gets the name of the algorithm.

    Declaration
    public string AlgorithmName { get; }
    Property Value
    Type Description
    string

    Methods

    Encrypt(string, params object[])

    Encrypts the given password using a PBKDF2 algorithm.

    Declaration
    public byte[] Encrypt(string password, params object[] args)
    Parameters
    Type Name Description
    string password

    The plaintext password.

    object[] args

    Additional arguments for the encryption process, specifically

    1. salt
    2. length
    3. iterations
    Returns
    Type Description
    byte[]

    A byte array with the hashed password.

    Implements

    IPasswordAlgorithm
    In this article
    Back to top Generated by DocFX