xcrypto

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TokenLength = 64

Functions

func GenerateAESKeyFromPassword

func GenerateAESKeyFromPassword(password string, size int) []byte

func Hash added in v0.5.0

func Hash(hasher hash.Hash, reader io.Reader) ([]byte, error)

func HashByChunk added in v0.5.0

func HashByChunk(hasher hash.Hash, content io.Reader, chunk int64) ([]byte, error)

func RandInt

func RandInt(n int) int64

func RandInt63

func RandInt63() int64

func RandInt64n

func RandInt64n(n int64) int64

func RandString

func RandString(n int) string

func RandToken added in v0.4.0

func RandToken() string

func Sha256 added in v0.5.0

func Sha256(reader io.Reader) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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