encryption

package
v0.0.0-...-3afccc4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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