Versions in this module Expand all Collapse all v0 v0.1.0 Nov 23, 2023 Changes in this version + func HMAC_MD5(key, data []byte) []byte + func If[T any](cond bool, a, b T) T + func LMOWFv2(password, user, domain string) []byte + func MD4(data []byte) []byte + func NTOWFv2(password, user, domain string) []byte + func Random(size int) []byte + func RandomString(size int) string + func ReadBE[T any](r io.Reader, data T) T + func ReadBytes(r io.Reader, length int) []byte + func ReadFull(r io.Reader, data []byte) []byte + func ReadLE[T any](r io.Reader, data T) T + func ShowHex(data []byte) + func ShowLine(line []byte) + func Throw(e any) + func ThrowError(e any) + func ThrowIf(cond bool, e any) + func ThrowNil(e any) + func Throwf(format string, args ...any) + func ToBE[T any](o T) []byte + func ToLE[T any](o T) []byte + func Try(f func()) error + func TryCatch(f func(), catch func(e any)) + func UnicodeEncode(p string) []byte + func WriteBE[T any](w io.Writer, data T) + func WriteFull(w io.Writer, data []byte) + func WriteLE[T any](w io.Writer, data T) + type Asn1 struct + Length int + Tag uint8 + Value []byte + func (s *Asn1) Read(r io.Reader) []byte + func (s *Asn1) Serialize() []byte + type Stream struct + func NewStream(addr string, tmOut time.Duration) *Stream + func (s *Stream) Close() + func (s *Stream) Peek(n int) []byte + func (s *Stream) PubKey() []byte + func (s *Stream) Read(b []byte) (n int, err error) + func (s *Stream) SwitchSSL() + func (s *Stream) Write(b []byte) (n int, err error)