encode

package
v0.0.0-...-523602a Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 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(cryted string, key string) string

AES解密

func AesEncrypt

func AesEncrypt(orig string, key string) string

AES加密 key:16,24,32位

func DesDecrypt

func DesDecrypt(decrypted string, key string) (string, error)

DES解密

func DesEncrypt

func DesEncrypt(text string, key string) (string, error)

DES加密 key:8位

func MD5

func MD5(data string) string

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blocksize int) []byte

补码

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

去码

func ZeroPadding

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

func ZeroUnPadding

func ZeroUnPadding(origData []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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