dkim

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyLength1024 KeyLength = 1024
	KeyLength2048 KeyLength = 2048
	KeyLength4096 KeyLength = 4096

	KeyTypeRSA     KeyType = "rsa"
	KeyTypeED25519 KeyType = "ed25519"
)

Variables

This section is empty.

Functions

func GenED25519

func GenED25519() ([]byte, string, error)

GenED25519 generates an ed25519 key pair.

func GenRSA

func GenRSA(size KeyLength) ([]byte, string, error)

GenRSA generates an RSA key pair.

func GenTXTValue

func GenTXTValue(pub string, keyType KeyType) string

GenTXTValue generates the DKIM record for the given public key.

Types

type KeyLength

type KeyLength uint

type KeyType

type KeyType string

Jump to

Keyboard shortcuts

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