Help us shape the future of Go! Take the 2026 Go Developer Survey

secret

package
v3.1.61 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(key, text []byte) ([]byte, error)

AesDecrypt decrypts text and given key with AES. It is only internally used at the moment to use "SECRET_KEY" for some database values.

func AesEncrypt

func AesEncrypt(key, text []byte) ([]byte, error)

AesEncrypt encrypts text and given key with AES. It is only internally used at the moment to use "SECRET_KEY" for some database values.

func DecryptSecret

func DecryptSecret(key, cipherHex string) (string, error)

DecryptSecret decrypts a previously encrypted hex string

func EncryptSecret

func EncryptSecret(key, str string) (string, error)

EncryptSecret encrypts a string with given key into a hex string

Types

This section is empty.

Source Files

  • secret.go

Jump to

Keyboard shortcuts

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