anbuCrypto

package
v1.2.14 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptFileSymmetric added in v0.1.5

func DecryptFileSymmetric(inputPath string, password string)

func DeleteSecret added in v0.2.15

func DeleteSecret(filePath, secretID string) error

func EncryptFileSymmetric added in v0.1.5

func EncryptFileSymmetric(inputPath string, password string)

func ExportSecrets added in v0.2.15

func ExportSecrets(filePath, exportFilePath string, password string) error

func GenerateKeyPair

func GenerateKeyPair(outputDir, name string, keySize int)

func GenerateSSHKeyPair

func GenerateSSHKeyPair(outputDir, name string, keySize int)

func GetSecret added in v0.2.15

func GetSecret(filePath, secretID, password string) (string, error)

func ImportSecrets added in v0.2.15

func ImportSecrets(filePath, importFilePath string, password string) error

func InitializeSecretsStore added in v0.2.15

func InitializeSecretsStore(filePath string) error

func ListSecrets added in v0.2.15

func ListSecrets(filePath string) ([]string, error)

func ReadMultilineInput added in v0.2.19

func ReadMultilineInput() (string, error)

func ReadSingleLineInput added in v0.2.19

func ReadSingleLineInput() (string, error)

func ScanSecretsInPath added in v0.2.5

func ScanSecretsInPath(path string, printFalsePositives bool)

func SetSecret added in v0.2.15

func SetSecret(filePath, secretID, value, password string) error

Types

type SecretMatch added in v0.2.5

type SecretMatch struct {
	Type  string
	Match string
	File  string
	Line  int
}

func (SecretMatch) Equals added in v0.2.5

func (s SecretMatch) Equals(other SecretMatch) bool

type SecretMatches added in v0.2.5

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

func (*SecretMatches) Add added in v0.2.5

func (sm *SecretMatches) Add(match SecretMatch)

func (*SecretMatches) Contains added in v0.2.5

func (sm *SecretMatches) Contains(match SecretMatch) bool

type SecretsStore added in v0.2.15

type SecretsStore struct {
	Secrets map[string]string `json:"secrets"`
}

Jump to

Keyboard shortcuts

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