encryption

package
v0.0.0-...-5c2109a Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int, after int) []byte

func PKCS5UnPadding

func PKCS5UnPadding(src []byte) []byte

Types

type AES

type AES struct {
	IV  string `json:"aes_iv"`
	Key string `json:"aes_key"`
}

func (*AES) Decrypt

func (a *AES) Decrypt(cipherText string) (string, error)

func (*AES) Encrypt

func (a *AES) Encrypt(plaintext string) (string, error)

Jump to

Keyboard shortcuts

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