dsafe

package module
v0.0.0-...-820c315 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2020 License: MIT Imports: 10 Imported by: 0

README

dsafe

Data security

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64AESDecrypt

func Base64AESDecrypt(src []byte, key []byte) ([]byte, error)

func Base64AESEncrypt

func Base64AESEncrypt(src []byte, key []byte) []byte

func DataMD5

func DataMD5(data []byte) ([]byte, error)

func DataMD5Check

func DataMD5Check(data []byte, sign string) (bool, error)

func DecryptAES

func DecryptAES(src []byte, key []byte) []byte

func EncryptAES

func EncryptAES(src []byte, key []byte) []byte

func FileMD5

func FileMD5(file multipart.File) ([]byte, error)

func FileMD5Check

func FileMD5Check(file multipart.File, sign string) (bool, error)

func HmacSha1

func HmacSha1(k []byte, v []byte) []byte

func RangeRand

func RangeRand(min int, max int) int

[min,max)

Types

This section is empty.

Jump to

Keyboard shortcuts

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