internal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicateItem = keychain.ErrorDuplicateItem
	ErrItemNotFound  = keychain.ErrorItemNotFound
)

Functions

func AddKeyChain

func AddKeyChain(account string, data []byte) error

func AesDecrypt

func AesDecrypt(encryptData, key []byte, withBase64 bool) ([]byte, error)

func AesEncrypt

func AesEncrypt(originData, key []byte, withBase64 bool) ([]byte, error)

func DecryptFile

func DecryptFile(path, account string) ([]byte, error)

func DeleteKeyChain

func DeleteKeyChain(account string) error

func EncryptFile

func EncryptFile(path, account string) ([]byte, error)

func ExecCommand added in v0.3.0

func ExecCommand(cmd string, args ...string) error

func GetKeyChain

func GetKeyChain(account string) ([]byte, error)

func SetKeyChain added in v0.2.0

func SetKeyChain(account string, data []byte) error

func WaitFileChanged added in v0.3.0

func WaitFileChanged(filePath string) (chan bool, error)

func WriteTempFile added in v0.3.0

func WriteTempFile(bs []byte) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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