crypto

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESKeyDecryption

func AESKeyDecryption(key, data string) (result []byte, err error)

func AESKeyEncryptedByPublicKey

func AESKeyEncryptedByPublicKey(key, publicKey string) []byte

func AESKeyEncryption

func AESKeyEncryption(key, data string) (result []byte, err error)

func BytesToHex

func BytesToHex(data []byte) string

func Decryption

func Decryption(privateKey, data string) ([]byte, error)

func Encryption

func Encryption(publicKey, data string) ([]byte, error)

Ellcurv

func GenerateRandomAESKey

func GenerateRandomAESKey(len int) []byte

AES

func HexToBytes

func HexToBytes(str string) []byte

Convert between Hex and Bytes

func NewAESKey

func NewAESKey(len int) string

func SHA224BytesFromBytes

func SHA224BytesFromBytes(data []byte) []byte

SHA224

func SHA224BytesFromHex

func SHA224BytesFromHex(data string) []byte

func SHA224HexFromBytes

func SHA224HexFromBytes(data []byte) string

func SHA224HexFromHex

func SHA224HexFromHex(data string) string

func SHA256BytesFromBytes

func SHA256BytesFromBytes(data []byte) []byte

SHA256

func SHA256BytesFromHex

func SHA256BytesFromHex(data string) []byte

func SHA256HexFromBytes

func SHA256HexFromBytes(data []byte) string

func SHA256HexFromHex

func SHA256HexFromHex(data string) string

func SHA384BytesFromBytes

func SHA384BytesFromBytes(data []byte) []byte

SHA384

func SHA384BytesFromHex

func SHA384BytesFromHex(data string) []byte

func SHA384FromBytes

func SHA384FromBytes(data []byte) string

func SHA384HexFromHex

func SHA384HexFromHex(data string) string

func SHA512BytesFromBytes

func SHA512BytesFromBytes(data []byte) []byte

SHA512

func SHA512BytesFromHex

func SHA512BytesFromHex(data string) []byte

func SHA512HexFromBytes

func SHA512HexFromBytes(data []byte) string

func SHA512HexFromHex

func SHA512HexFromHex(data string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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