secret

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64

func DecodeBase64(encoded string) (string, error)

func DecryptOpenPGP

func DecryptOpenPGP(privateKey string, privateKeyPassword string, encString string) (string, error)

DecryptOpenPGP decrypts an encrypted string using OpenPGP (armored encrypted message)

func EncryptOpenPGP

func EncryptOpenPGP(publicKey string, secretString string) (string, error)

EncryptOpenPGP encrypts a secretString with the publicKey using OpenPGP (armored encrypted message)

func SignOpenPGP added in v0.11.0

func SignOpenPGP(privateKey string, privateKeyPassword string, message []byte) (string, error)

SignOpenPGP signs a message using a private key and returns a detached armored signature

Types

This section is empty.

Jump to

Keyboard shortcuts

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