password

package
v0.0.3-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClearPassword

func NewClearPassword(password []byte) keystore.Password

Stores a clear text password

func NewClearPasswordFromString

func NewClearPasswordFromString(password string) keystore.Password

func NewRequiredPassword

func NewRequiredPassword() keystore.Password

Creates a secret that always returns ErrPasswordRequired

Types

type ClearPassword

type ClearPassword struct {
	keystore.Password
	// contains filtered or unexported fields
}

func (ClearPassword) Bytes

func (p ClearPassword) Bytes() ([]byte, error)

Returns the password as bytes

func (ClearPassword) String

func (p ClearPassword) String() (string, error)

Returns the password as a string

type RequiredPassword

type RequiredPassword struct {
	keystore.Password
}

func (RequiredPassword) Bytes

func (p RequiredPassword) Bytes() ([]byte, error)

Returns ErrPasswordRequired

func (RequiredPassword) String

func (p RequiredPassword) String() (string, error)

Returns ErrPasswordRequired

Jump to

Keyboard shortcuts

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