xcrypto

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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)

@brief:AES解密

func AesEncrypt

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

@brief:AES加密

func Base64_decode

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

解码

func Base64_encode

func Base64_encode(src []byte) string

编码

func MD5

func MD5(datas []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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