Unosquare
    Show / Hide Table of Contents

    Class PwnedSearch

    Inheritance
    System.Object
    PwnedSearch
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: PwnedPasswordsSearch
    Syntax
    public static class PwnedSearch

    Methods

    IsPwnedPassword(String)

    Makes a call to Pwned Passwords API, asking for a set of hashes of publicly known passwords that match a partial hash of a given password. If any of the hashes returned by the API call fully matches the hash of the plaintext, it would mean that the password has been exposed in publicly known data breaches and thus is not safe to use. See https://haveibeenpwned.com/API/v2#PwnedPasswords

    Declaration
    public static bool IsPwnedPassword(string plaintext)
    Parameters
    Type Name Description
    System.String plaintext

    Password to check against Pwned Passwords API

    Returns
    Type Description
    System.Boolean

    True when the password has been Pwned

    Comments

    Back to top Copyright © 2017-2019 Unosquare