Documentation ¶
Index ¶
- func ClearSignData(data string) (bytes.Buffer, error)
- func ClearSignDataNoBatch(data string) ([]byte, error)
- func ClearSignDataWithNoBatch(data, gpgid string) ([]byte, error)
- func DecryptDataWithPass(data string, password string) (bytes.Buffer, error)
- func DecryptFile(path, output string) error
- func DeleteKey(id string) error
- func DetachSign(data string) (bytes.Buffer, error)
- func DetachSignWithPass(data string, password string) (bytes.Buffer, error)
- func EncryptArmorData(gpgid string, data string) (string, error)
- func EncryptArmorDataWithPassword(gpgid, data, password string) (string, error)
- func EncryptArmorFile(gpgid, path, output string) error
- func EncryptArmorFileRecipientSelf(path, output string) error
- func EncryptData(gpgid string, data string) (string, error)
- func EncryptFile(gpgid, path, output string) error
- func EncryptFileRecipientSelf(path, output string) error
- func ExtractDataFromSigned(data string) (bytes.Buffer, error)
- func ExtractPubKey(id string) (string, error)
- func ImportPubkey(pubkey string) (string, error)
- func RecvKeyFromSKS(gpgid string, sks string) error
- func RecvKeyFromSKSAndSign(id string, sks string) error
- func RecvKeyFromSKSAndSignWithPass(gpgid string, password string, sks string) error
- func SendKeyToSKS(gpgid, sks string) error
- func SignData(data string) (bytes.Buffer, error)
- func SignDataNoBatch(data string) ([]byte, error)
- func SignDataWithPass(data string, password string) (bytes.Buffer, error)
- func SignKey(gpgid string) error
- func SignKeyWithPassword(gpgid string, password string) error
- func Verify(data string) (string, error)
- func VerifyFile(signaturePath string) (bool, error)
- type Key
- type SubKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearSignData ¶
ClearSignData make clear signature
func ClearSignDataNoBatch ¶
ClearSignDataNoBatch make clear signature with interactive terminal
func ClearSignDataWithNoBatch ¶
ClearSignDataWithNoBatch make clear signature with provided gpgid and interactive terminal
func DecryptDataWithPass ¶
DecryptDataWithPass ...
func DecryptFile ¶
DecryptFile in provided path return error
func DetachSign ¶
DetachSign return detached signature as bytes.Buffer
func DetachSignWithPass ¶
DetachSignWithPass return detached signature as bytes.Buffer
func EncryptArmorData ¶
EncryptArmorData ...
func EncryptArmorDataWithPassword ¶
EncryptArmorDataWithPassword ...
func EncryptArmorFile ¶
EncryptArmorFile in provided path return error
func EncryptArmorFileRecipientSelf ¶
EncryptArmorFileRecipientSelf in provided path return error
func EncryptFile ¶
EncryptFile in provided path return error
func EncryptFileRecipientSelf ¶
EncryptFileRecipientSelf in provided path return error
func ExtractDataFromSigned ¶
ExtractDataFromSigned extract data from clear signed data
func RecvKeyFromSKS ¶
RecvKeyFromSKS Recieve pubkey from SKS
func RecvKeyFromSKSAndSign ¶
RecvKeyFromSKSAndSign Recieve pubkey from sks and sign it
func RecvKeyFromSKSAndSignWithPass ¶
RecvKeyFromSKSAndSignWithPass Recieve pubkey from sks and sign it
func SendKeyToSKS ¶
SendKeyToSKS send pubkey to remote keyserver
func SignDataNoBatch ¶
SignDataNoBatch make gpg signature with interactive terminal
func SignDataWithPass ¶
SignDataWithPass make gpg signature with provided password
func SignKeyWithPassword ¶
SignKeyWithPassword ...
func VerifyFile ¶
VerifyFile runs gpg --verify /path/to/signature.asc
Types ¶
type Key ¶
Key GPG key information
func ListSecretKeys ¶
ListSecretKeys list secret keys from ~/.gnupg/