readpassword

package
v2.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package readpassword reads a password from the terminal of from stdin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Once

func Once(extpass []string, passfile []string, prompt string) []byte

Once tries to get a password from the user, either from the terminal, extpass, passfile or stdin. Leave "prompt" empty to use the default "Password: " prompt.

func Twice

func Twice(extpass []string, passfile []string) []byte

Twice is the same as Once but will prompt twice if we get the password from the terminal.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL