xcrypto

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

功能:aes - Advanced Encryption Standard (AES) 说明:对称加密算法 AES-128

功能:base64 说明:对称加密算法

功能:md5-32位 说明:非对称加密算法

Index

Constants

View Source
const (
	AES_KEY = "27ad84xd62e27fe6" //128bit[16byte]
)

Variables

This section is empty.

Functions

func AesDecrypt

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

AesDecrypt AES解密

func AesEncrypt

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

AesEncrypt AES加密

func Base64_decode

func Base64_decode(src string) ([]byte, error)

Base64_decode 解码

func Base64_encode

func Base64_encode(src []byte) string

Base64_encode 编码

func MD5

func MD5(datas []byte) string

MD5 md5加密,32位输出

Types

This section is empty.

Jump to

Keyboard shortcuts

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