mysql_aes

package module
v0.0.0-...-5d2830b Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 5 Imported by: 0

README

Simple MySQL AES_ENCRYPT() and AES_DECRYPT()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data, password []byte) ([]byte, error)

func Encrypt

func Encrypt(plain, password []byte) ([]byte, error)

func FillZero

func FillZero(length int) []byte

func NewBlock

func NewBlock(password []byte) (cipher.Block, error)

func NewPassword

func NewPassword(password []byte, length int) []byte

Types

type HexString

type HexString = string

func DecryptFromHex

func DecryptFromHex(encryptedHex, password string) (HexString, error)

func EncryptAsHex

func EncryptAsHex(plain, password string) (HexString, error)

Jump to

Keyboard shortcuts

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