Show / Hide Table of Contents

    Interface IPasswordReader

    Namespace: Catalyst.Abstractions.Cryptography
    Assembly: Catalyst.Abstractions.dll
    Syntax
    public interface IPasswordReader

    Methods

    | Improve this Doc View Source

    ReadSecurePassword(String)

    Prompt user for a password.

    Declaration
    SecureString ReadSecurePassword(string prompt = "Please enter your password")
    Parameters
    Type Name Description
    System.String prompt

    A message providing some context to the user, for instance which password is being requested.

    Returns
    Type Description
    System.Security.SecureString

    The password read and stored as a SecureString

    Remarks

    Once the password has been use, it is recommended to dispose of it. https://docs.microsoft.com/en-us/dotnet/api/system.security.securestring?view=netcore-2.2

    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network