utils

package
v0.0.0-...-3311072 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CBCDecrypt

func CBCDecrypt(ssk, data, iv string) (bts []byte, err error)

CBCDecrypt encrypt the data

func Decrypt

func Decrypt(ssk, data, iv string) (bts []byte, err error)

Decrypt implement decrypt data

func PKCS5UnPadding

func PKCS5UnPadding(plaintext []byte) ([]byte, error)

PKCS5UnPadding format the data

func Validate

func Validate(rawData, ssk, signature string) bool

Validate implement validate the package

Types

This section is empty.

Jump to

Keyboard shortcuts

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