crypto

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecrypt

func AESDecrypt(text string, key *[32]byte) (plaintext string, err error)

func AESEncrypt

func AESEncrypt(plaintext string, key *[32]byte) (ciphertext string, err error)

func MD5

func MD5(text string) string

MD5 is just syntax sugar around crypto/md5

Types

type AESSealer

type AESSealer struct{}

func (*AESSealer) Seal

func (*AESSealer) Seal(message, key string) (encoded string, err error)

func (*AESSealer) Unseal

func (*AESSealer) Unseal(message, key string) (decoded string, err error)

Jump to

Keyboard shortcuts

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