terminal

package
v0.0.0-...-813b058 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MinPwdLength int
	MaxPwdLength int
}

type Terminal

type Terminal struct {
	// contains filtered or unexported fields
}

func NewTerminal

func NewTerminal(cfg Config) *Terminal

func (Terminal) ReceiveDecryptionPwd

func (t Terminal) ReceiveDecryptionPwd() ([]byte, error)

ReceiveDecryptionPwd promts user to enter a password for decryption

func (Terminal) ReceiveEncryptionPwd

func (t Terminal) ReceiveEncryptionPwd() ([]byte, error)

ReceiveEncryptionPwd promts user to enter a password for encryption (twice)

Jump to

Keyboard shortcuts

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