secret

package
v1.14.6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 8 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt added in v1.13.0

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

AesDecrypt decrypts text and given key with AES.

func AesEncrypt added in v1.13.0

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

AesEncrypt encrypts text and given key with AES.

func DecryptSecret added in v1.13.0

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

DecryptSecret decrypts a previously encrypted hex string

func EncryptSecret added in v1.13.0

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

EncryptSecret encrypts a string with given key into a hex string

func New

func New() (string, error)

New creats a new secret

func NewWithLength

func NewWithLength(length int64) (string, error)

NewWithLength creates a new secret for a given length

Types

This section is empty.

Jump to

Keyboard shortcuts

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