common

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Char2hex

func Char2hex(i int) string

Char2hex converts a character code to hex.

func ComputeDigesthash

func ComputeDigesthash(username, password, realm, method, path, qop, nonce, nc, cnonce string) string

ComputeDigesthash computes the MD5 digest hash for a set of values.

func GetSidString

func GetSidString(sid string) string

GetSidString converts a byte array of SID into string. Note: This function assumes sid is provided as a string for simplicity but should be []byte in a real Go implementation.

func Hex2rstr

func Hex2rstr(d string) string

Hex2rstr converts a hex string to a raw string.

func IntToStr

func IntToStr(v int) string

IntToStr converts an int value to a string.

func IntToStrX

func IntToStrX(v int) string

IntToStrX converts an int value to a string in reverse order.

func MakeToArray

func MakeToArray(v interface{}) []interface{}

MakeToArray attempts to convert an interface to a slice of interfaces.

func RandomValueHex

func RandomValueHex(len int) string

RandomValueHex generates a random hex string of a given length.

func ReadInt

func ReadInt(v string, p int) int

ReadInt reads an int value from a string at position p.

func ReadIntX

func ReadIntX(v string, p int) int

ReadIntX reads an int value from a string at position p in reverse order.

func ReadShort

func ReadShort(v string, p int) int

ReadShort reads a short value from a string at position p.

func ReadShortX

func ReadShortX(v string, p int) int

ReadShortX reads a short value from a string at position p in reverse order.

func Rstr2hex

func Rstr2hex(input string) string

Rstr2hex converts a raw string to a hex string.

func ShortToStr

func ShortToStr(v int) string

ShortToStr converts a short value to a string.

func ShortToStrX

func ShortToStrX(v int) string

ShortToStrX converts a short value to a string in reverse order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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