rscrypto

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecryptECB

func AesDecryptECB(encrypted []byte, key []byte) []byte

func AesEncryptECB

func AesEncryptECB(origData []byte, key []byte) []byte

=================== ECB ======================

func EthHash

func EthHash(data []byte) common.Hash

func GetDhKey

func GetDhKey(publicKey *ecdsa.PublicKey, privateKey *ecdsa.PrivateKey) (string, error)

func GetPublicKey

func GetPublicKey(key string) (*ecdsa.PublicKey, error)

=================== ecdsa ======================

func GetRandom

func GetRandom(n int, isNO bool) string

func GetRandomInt

func GetRandomInt(n int) (int64, error)

func HmacSha1

func HmacSha1(key, data []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