Registry / auth / hashicorp-go-secure-stdlib-password

hashicorp-go-secure-stdlib-password

JSON →
library0.1.5gogounverified

password is a package for reading a password securely from a terminal. The code in this package disables echo in the terminal so that the password is not echoed back in plaintext to the user.

go get github.com/hashicorp/go-secure-stdlib/password
INSTALL
IMPORT
SIG · HASHICORP-GO-SECUR
H
hashicorp-go-secure-stdlib-password
authgov0.1.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

password
github.com/hashicorp/go-secure-stdlib/password

Reads a password from the terminal without echoing.

package main import ( "fmt" "github.com/hashicorp/go-secure-stdlib/password" ) func main() { pwd, err := password.Read("Enter password: ") if err != nil { panic(err) } fmt.Println("Password length:", len(pwd)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.5latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
Resources
hashicorp-go-secure-stdlib-password — go get hashicorp-go-secure-stdlib-password · libregistry