Versions in this module Expand all Collapse all v0 v0.27.1 Jul 30, 2020 Changes in this version + type Crypto struct + func New() *Crypto + func (*Crypto) CreateHash(ctx context.Context, algorithm string) *Hasher + func (*Crypto) RandomBytes(ctx context.Context, size int) []byte + func (c *Crypto) Hmac(ctx context.Context, algorithm string, key []byte, input []byte, ...) interface{} + func (c *Crypto) Md4(ctx context.Context, input []byte, outputEncoding string) interface{} + func (c *Crypto) Md5(ctx context.Context, input []byte, outputEncoding string) interface{} + func (c *Crypto) Ripemd160(ctx context.Context, input []byte, outputEncoding string) interface{} + func (c *Crypto) Sha1(ctx context.Context, input []byte, outputEncoding string) interface{} + func (c *Crypto) Sha256(ctx context.Context, input []byte, outputEncoding string) interface{} + func (c *Crypto) Sha384(ctx context.Context, input []byte, outputEncoding string) interface{} + func (c *Crypto) Sha512(ctx context.Context, input []byte, outputEncoding string) interface{} + func (c *Crypto) Sha512_224(ctx context.Context, input []byte, outputEncoding string) interface{} + func (c *Crypto) Sha512_256(ctx context.Context, input []byte, outputEncoding string) interface{} + func (c Crypto) CreateHMAC(ctx context.Context, algorithm string, key []byte) *Hasher + func (c Crypto) HexEncode(_ context.Context, data []byte) string + type Hasher struct + func (hasher *Hasher) Digest(outputEncoding string) interface{} + func (hasher *Hasher) Update(input []byte)