Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BtoInt ¶
BtoInt converts a byte slice into int in Big Endian order Uint methods from binary package can be used, but they are messy
func CryptoRandBytes ¶
CryptoRandBytes generates a byte slice filled with cryptographically secure random bytes
func MakeRandomField ¶ added in v1.0.0
MakeRandomField makes the random value that can pass the check at server side
func PsudoRandBytes ¶
PsudoRandBytes returns a byte slice filled with psudorandom bytes generated by the seed
Types ¶
type State ¶
type State struct {
SS_LOCAL_HOST string
SS_LOCAL_PORT string
SS_REMOTE_HOST string
SS_REMOTE_PORT string
Now func() time.Time
Opaque int
Key string
TicketTimeHint int
AESKey []byte
ServerName string
Browser string
}
State stores global variables
func (*State) ParseConfig ¶
ParseConfig parses the config (either a path to json or Android config) into a State variable
Click to show internal directories.
Click to hide internal directories.