encrypt

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(crypted, key []byte) ([]byte, error)

func AesEncrypt

func AesEncrypt(origData, key []byte) ([]byte, error)

func HashChunkWrite added in v0.8.6

func HashChunkWrite(h hash.Hash, bytes []byte) string

func MD5

func MD5(bytes []byte) string

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func Sha256 added in v0.8.6

func Sha256(bytes []byte) string

func StringMD5 added in v0.8.6

func StringMD5(v string) string

字符串md5

func StringSha256 added in v0.8.6

func StringSha256(v string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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