crypto

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

type Crypto struct{}

func (*Crypto) CreateHash

func (*Crypto) CreateHash(ctx context.Context, algorithm string) *Hasher

func (*Crypto) Md4

func (c *Crypto) Md4(ctx context.Context, input string, outputEncoding string) string

func (*Crypto) Md5

func (c *Crypto) Md5(ctx context.Context, input string, outputEncoding string) string

func (*Crypto) Ripemd160

func (c *Crypto) Ripemd160(ctx context.Context, input string, outputEncoding string) string

func (*Crypto) Sha1

func (c *Crypto) Sha1(ctx context.Context, input string, outputEncoding string) string

func (*Crypto) Sha256

func (c *Crypto) Sha256(ctx context.Context, input string, outputEncoding string) string

func (*Crypto) Sha384

func (c *Crypto) Sha384(ctx context.Context, input string, outputEncoding string) string

func (*Crypto) Sha512

func (c *Crypto) Sha512(ctx context.Context, input string, outputEncoding string) string

func (*Crypto) Sha512_224

func (c *Crypto) Sha512_224(ctx context.Context, input string, outputEncoding string) string

func (*Crypto) Sha512_256

func (c *Crypto) Sha512_256(ctx context.Context, input string, outputEncoding string) string

type Hasher

type Hasher struct {
	// contains filtered or unexported fields
}

func (*Hasher) Digest

func (hasher *Hasher) Digest(outputEncoding string) string

func (*Hasher) Update

func (hasher *Hasher) Update(input string)

Jump to

Keyboard shortcuts

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