auth

package
v0.0.0-...-26f3798 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data []byte, secretKey *[32]byte) ([]byte, error)

func DecryptCredentials

func DecryptCredentials(secretKey *[32]byte, encryptedUsername, encryptedPassword []byte) ([]byte, []byte, error)

func Encrypt

func Encrypt(data []byte, secretKey *[32]byte) ([]byte, error)

func EncryptCredentials

func EncryptCredentials(username, password []byte, secretKey *[32]byte) ([]byte, []byte, error)

func GenerateKey

func GenerateKey() (*[]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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