crypto

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT 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) Base64

func (Crypto) Base64(v any) (string, error)

func (Crypto) Base64B

func (Crypto) Base64B(v []byte) string

func (Crypto) Base64Decode

func (Crypto) Base64Decode(v any) ([]byte, error)

func (Crypto) FNV32a

func (Crypto) FNV32a(v any) (int, error)

FNV32a hashes v using fnv32a algorithm.

func (Crypto) HMAC

func (Crypto) HMAC(h interface{}, k interface{}, m interface{}) (string, error)

func (Crypto) JwtParseUnverified

func (Crypto) JwtParseUnverified(token string) (map[string]interface{}, error)

func (Crypto) MD5

func (Crypto) MD5(v any) (string, error)

func (Crypto) MD5B

func (Crypto) MD5B(v []byte) []byte

SHA1B hashes v and returns its SHA1 checksum in binary.

func (Crypto) SHA1

func (Crypto) SHA1(v any) (string, error)

SHA1 hashes v and returns its SHA1 checksum.

func (Crypto) SHA1B

func (Crypto) SHA1B(v []byte) []byte

SHA1B hashes v and returns its SHA1 checksum in binary.

func (Crypto) SHA256

func (Crypto) SHA256(v any) (string, error)

SHA256 hashes v and returns its SHA256 checksum.

func (Crypto) SHA256B

func (Crypto) SHA256B(v []byte) []byte

SHA256B hashes v and returns its SHA256 checksum in binary.

Jump to

Keyboard shortcuts

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