encryption

package
v0.0.0-...-a20cc02 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext []byte) ([]byte, error)

func Encrypt

func Encrypt(plaintext []byte) ([]byte, error)

func FromBase64

func FromBase64(ciphertext string) ([]byte, error)

func ParseLoginJWT

func ParseLoginJWT(_token string) (jwt.MapClaims, error)

func SignedLoginToken

func SignedLoginToken(u *models.User) (string, error)

func ToBase64

func ToBase64(plaintext []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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