cryptoutils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecrypt

func AESDecrypt(data, key []byte) []byte

Use aes algorithm to decrypt data

func AESEncrypt

func AESEncrypt(data, key []byte) []byte

Use aes algorithm to encrypt data

func Hash160

func Hash160(data []byte) []byte

hash160 returns the RIPEMD160 hash of the SHA-256 HASH of the given data.

func Ripemd160h

func Ripemd160h(data []byte) []byte

ripemd160h returns the RIPEMD160 hash of the given data.

func Sha256h

func Sha256h(data []byte) []byte

renturn SHA-256 hash of the given data, type : []byte

func Sha256twice

func Sha256twice(data []byte) []byte

Calculates the SHA-256 hash of the given bytes, * and then hashes the resulting hash again.

Types

This section is empty.

Jump to

Keyboard shortcuts

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