GetPass 1.0.0

Install-Package GetPass -Version 1.0.0
dotnet add package GetPass --version 1.0.0
<PackageReference Include="GetPass" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GetPass --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GetPass, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install GetPass as a Cake Addin
#addin nuget:?package=GetPass&version=1.0.0

// Install GetPass as a Cake Tool
#tool nuget:?package=GetPass&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

GetPass

Build Status

About GetPass

GetPass is a free, open source, cross-platform library to read passwords in console applications masking the input. It simply focus on getting the job done, with zero-dependencies and few lines of code.

It is licensed under MIT License.

If you like this project please don't forget to star it on GitHub or let me know with a tweet.

Quick Start

Install the GetPass Nuget package.

using GetPass;
var password = ConsolePasswordReader.Read();

or if you want to customize the prompt message:

var password = ConsolePasswordReader.Read("Key: ");

Example

using System;
using GetPass;

namespace Sample
{
    class Program
    {
        static void Main(string[] args)
        {
            var password = ConsolePasswordReader.Read();
            Console.Write(password);
            Console.WriteLine();
        }
    }
}

You can find the full example here.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 13,834 2/3/2019