gopass

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

gopass is a library for getting hidden input from a terminal.

This library's main use is to allow a user to enter a password at the command line without having it echoed to the screen.

The libary currently supports unix systems by manipulating stty.

This code is based upon code by RogerV in the golang-nuts thread: https://groups.google.com/group/golang-nuts/browse_thread/thread/40cc41e9d9fc9247

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPass

func GetPass(prompt string) (passwd string, err error)

GetPass gets input hidden from the terminal from a user. This is accomplished by turning off terminal echo, reading input from the user and finally turning on terminal echo. prompt is a string to display before the user's input.

Types

This section is empty.

Jump to

Keyboard shortcuts

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