xcrypto

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: MIT Imports: 9 Imported by: 0

README

xcrypto

Dependencies
  • xtesting*
Functions
  • FNV32(text string) uint32
  • FNV32a(text string) uint32
  • FNV64(text string) uint64
  • FNV64a(text string) uint64
  • MD5(text string) string
  • SHA1(text string) string
  • SHA256(text string) string
  • SHA512(text string) string
  • StringHasher(algorithm hash.Hash, text string) string
  • Uint32Hasher(algorithm hash.Hash32, text string) uint32
  • Uint64Hasher(algorithm hash.Hash64, text string) uint64
  • Base32Encode(data []byte) string
  • Base32Decode(data string) ([]byte, error)
  • Base64Encode(data []byte) string
  • Base64Decode(data string) ([]byte, error)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base32Decode

func Base32Decode(data string) ([]byte, error)

Base32Decode use base32.StdEncoding (standard base32 encoding) to decode in base32.

func Base32Encode

func Base32Encode(data []byte) string

Base32Encode use base32.StdEncoding (standard base32 encoding) to encode in base32.

func Base64Decode

func Base64Decode(data string) ([]byte, error)

Base64Decode use base64.StdEncoding (standard base32 encoding) to decode in base64.

func Base64Encode

func Base64Encode(data []byte) string

Base64Encode use base64.StdEncoding (standard base32 encoding) to encode in base64.

func FNV32

func FNV32(text string) uint32

func FNV32a

func FNV32a(text string) uint32

func FNV64

func FNV64(text string) uint64

func FNV64a

func FNV64a(text string) uint64

func MD5

func MD5(text string) string

func SHA1

func SHA1(text string) string

func SHA256

func SHA256(text string) string

func SHA512

func SHA512(text string) string

func StringHasher

func StringHasher(algorithm hash.Hash, text string) string

StringHasher use hash.Hash to encode string.

func Uint32Hasher

func Uint32Hasher(algorithm hash.Hash32, text string) uint32

Uint32Hasher use hash.Hash to encode uint32.

func Uint64Hasher

func Uint64Hasher(algorithm hash.Hash64, text string) uint64

Uint64Hasher use hash.Hash to encode uint64.

Types

This section is empty.

Jump to

Keyboard shortcuts

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