util

package
v0.0.0-...-70d54de Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultKey = []byte("mogo2023mogo2023")

Functions

func Decrypt

func Decrypt(decrypted []byte, key []byte) ([]byte, error)

func Encrypt

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

func PKCS5Padding

func PKCS5Padding(plaintext []byte, blockSize int) []byte

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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