auth

package
v0.0.0-...-c280842 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: AGPL-3.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyRoomSignature

func VerifyRoomSignature(roomName string, signatureBase64 string, publicKey string) (bool, error)

Types

type Key

type Key struct {
	PrivateKey *rsa.PrivateKey
}

func FromPem

func FromPem(pemBytes []byte) (*Key, error)

func GenerateKey

func GenerateKey() (*Key, error)

func (*Key) GetRoomName

func (a *Key) GetRoomName() string

func (*Key) GetRoomSignature

func (a *Key) GetRoomSignature() ([]byte, error)

func (*Key) PrivateKeyToPem

func (a *Key) PrivateKeyToPem() string

func (*Key) PublicKeyToPem

func (a *Key) PublicKeyToPem() []byte

func (*Key) PublicKeyToPemBase64

func (a *Key) PublicKeyToPemBase64() string

Jump to

Keyboard shortcuts

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