Documentation ¶
Index ¶
- Variables
- func GenerateAESKeyFromPassword(password string, size int) []byte
- func Hash(hasher hash.Hash, reader io.Reader) ([]byte, error)
- func HashByChunk(hasher hash.Hash, content io.Reader, chunk int64) ([]byte, error)
- func RandInt(n int) int64
- func RandInt63() int64
- func RandInt64n(n int64) int64
- func RandString(n int) string
- func RandToken() string
- func Sha256(reader io.Reader) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var TokenLength = 64
Functions ¶
func HashByChunk ¶ added in v0.5.0
func RandInt64n ¶
func RandString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.