crypt

package
v0.0.0-...-5c69d3f Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(encrypted, key string) ([]byte, error)

Decrypt 解密给定的加密字符串

func Encrypt

func Encrypt(data []byte, key string) (string, error)

Encrypt 加密给定的输入字符串

func NewECBDecrypter

func NewECBDecrypter(block cipher.Block) cipher.BlockMode

func NewECBEncrypter

func NewECBEncrypter(block cipher.Block) cipher.BlockMode

func Sign

func Sign(strDes, certPassword, pfx string) (string, error)

Sign 使用私钥对字符串进行签名

func Verify

func Verify(strDes, signMsg, certFile string) (bool, error)

Verify 使用公钥对签名进行验证

Types

This section is empty.

Jump to

Keyboard shortcuts

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