Documentation ¶
Index ¶
- func Char2hex(i int) string
- func ComputeDigesthash(username, password, realm, method, path, qop, nonce, nc, cnonce string) string
- func GetSidString(sid string) string
- func Hex2rstr(d string) string
- func IntToStr(v int) string
- func IntToStrX(v int) string
- func MakeToArray(v interface{}) []interface{}
- func RandomValueHex(len int) string
- func ReadInt(v string, p int) int
- func ReadIntX(v string, p int) int
- func ReadShort(v string, p int) int
- func ReadShortX(v string, p int) int
- func Rstr2hex(input string) string
- func ShortToStr(v int) string
- func ShortToStrX(v int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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 MakeToArray ¶
func MakeToArray(v interface{}) []interface{}
MakeToArray attempts to convert an interface to a slice of interfaces.
func RandomValueHex ¶
RandomValueHex generates a random hex string of a given length.
func ReadShortX ¶
ReadShortX reads a short value from a string at position p in reverse order.
func ShortToStrX ¶
ShortToStrX converts a short value to a string in reverse order.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.