utils

package
v0.0.0-...-624a73a Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(orig, copy string) error

func CopyFiles

func CopyFiles(origs []string, dest string) error

func CreateDirs

func CreateDirs(directories []string) (err error)

func GetEnv

func GetEnv(key, fallback string) string

func Random

func Random(n int) string

Types

type Encode

type Encode struct{}

func (Encode) MakeSSHA256Encode

func (enc Encode) MakeSSHA256Encode(pass []byte) (passEncode []byte)

func (Encode) MakeSSHAEncode

func (enc Encode) MakeSSHAEncode(pass []byte) (passEncode []byte)

func (Encode) Matches

func (enc Encode) Matches(passwordSSHAB64, rawPassPhrase []byte, debug bool) bool

Jump to

Keyboard shortcuts

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