Documentation ¶
Index ¶
- type Crypto
- func (c Crypto) CreateHMAC(ctx context.Context, algorithm string, key []byte) *Hasher
- func (*Crypto) CreateHash(ctx context.Context, algorithm string) *Hasher
- func (c Crypto) HexEncode(_ context.Context, data []byte) string
- 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 (*Crypto) RandomBytes(ctx context.Context, size int) []byte
- 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{}
- type Hasher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crypto ¶
type Crypto struct{}
func (Crypto) CreateHMAC ¶
func (*Crypto) CreateHash ¶
func (Crypto) HexEncode ¶
HexEncode returns a string with the hex representation of the provided byte array
func (*Crypto) Hmac ¶
func (*Crypto) Md4 ¶
func (*Crypto) Md5 ¶
func (*Crypto) Ripemd160 ¶
func (*Crypto) Sha1 ¶
func (*Crypto) Sha256 ¶
func (*Crypto) Sha384 ¶
func (*Crypto) Sha512 ¶
func (*Crypto) Sha512_224 ¶
Click to show internal directories.
Click to hide internal directories.