gopass

package
v2.2.0-preview1+incomp... Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2014 License: ISC, MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

getpasswd in Go

Retrieve password from user terminal input without echo

Verified on BSD, Linux, and Windows.

Example:

package main

import "fmt"
import "github.com/howeyc/gopass"

func main() {
	fmt.Printf("Password: ")
	pass := gopass.GetPasswd() // Silent, for *'s use gopass.GetPasswdMasked()
    // Do something with pass
}

Caution: Multi-byte characters not supported!

Documentation

Overview

Reads password from terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPasswd

func GetPasswd() []byte

Returns password byte array read from terminal without input being echoed. Array of bytes does not include end-of-line characters.

func GetPasswdMasked

func GetPasswdMasked() []byte

Masking password functionality Removed character restrictions

Types

This section is empty.

Jump to

Keyboard shortcuts

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