jwtkey

package
v0.0.0-...-2e41b90 Latest Latest
Warning

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

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

Documentation

Overview

Package jwtkey provides utility functions for generating, serializing and deserializing JWT ECDSA keys.

TODO: Replace EC function usages with PKCS8 functions for supporting ECDSA and RSA keys instead of only supporting ECDSA. The fact this package only supports ECDSA is unnecessary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKey

func GenerateKey() (*ecdsa.PrivateKey, error)

GenerateKey is a convenience function for generating an ECDSA key for use as a JWT key. It uses the P256 curve. To use other curves use the crypto/ecdsa package directly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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