pgp

package
v0.0.0-...-7c0396a Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package pgp provides functions to work with PGP keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAndArmorBase64Entity

func DecodeAndArmorBase64Entity(encodedEntity string, armorType string) (string, error)

DecodeAndArmorBase64Entity decodes a base64 encoded entity and armors it.

func DecodePgpKey

func DecodePgpKey(pgpKey string) (*openpgp.Entity, error)

DecodePgpKey tests if the passed in pgpKey is a base64 encoded pgp Public Key.

func TestEncrypt

func TestEncrypt(entity *openpgp.Entity) error

TestEncrypt tests if an opengpg.Entity can be used for encryption

Types

This section is empty.

Jump to

Keyboard shortcuts

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