security

package
v0.0.0-...-4854836 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(privateKey *rsa.PrivateKey) (string, error)

func MarshalPrivateKey

func MarshalPrivateKey(privateKey *rsa.PrivateKey) []byte

func MarshalPublicKey

func MarshalPublicKey(publicKey crypto.PublicKey) []byte

func UnmarshalRSAPrivateKey

func UnmarshalRSAPrivateKey(pemPrivateKey string) (key *rsa.PrivateKey, err error)

func UnmarshalRSAPublicKey

func UnmarshalRSAPublicKey(pemPubKey string) (key *rsa.PublicKey, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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