gitcrypt

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileHMAC

func GetFileHMAC(filePath string) (string, error)

GetFileHMAC returns encrypted file HMAC

func UnlockFile

func UnlockFile(filepath string, secretsKeys KeyData) ([]byte, error)

UnlockFile return content of the file decrypted by AES from KeyData

Types

type KeyData

type KeyData struct {
	AES  []byte
	HMAC []byte
}

KeyData is struct for keep AES and HMAC from git-crypt key

func LoadKey

func LoadKey(keyFileDataBase64 string) (KeyData, error)

LoadKey convert key base64 to KeyData struct

Jump to

Keyboard shortcuts

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