crypto

package
v0.0.0-...-2e9e358 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DesDecrypt

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

func DesEncrypt

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

func GaPwd

func GaPwd(secretKey string) (pwd uint32, e error)

GaPwd ...

func GaPwdStr

func GaPwdStr(secretKey string) (pwd string, e error)

GaPwdStr ...

func Md5

func Md5(orig string) string

func Md5Impl

func Md5Impl(orig []byte) []byte

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func Sha1

func Sha1(orig string) string

func Sha1Impl

func Sha1Impl(orig []byte) []byte

func TripleDesDecrypt

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

3DES解密

func TripleDesEncrypt

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

3DES加密

func ZeroPadding

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

func ZeroUnPadding

func ZeroUnPadding(origData []byte) []byte

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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