Documentation
¶
Index ¶
- func AESCbcDecrypt(ciphertext []byte, password string) []byte
- func AESCbcEncrypt(str, password string) []byte
- func Bcrypt(str string) string
- func CheckBcrypt(hashStr, str string) bool
- func InStringArray(s string, ss []string) bool
- func IoCopy(dst io.Writer, src io.Reader) error
- func ParsePtyRequest(s []byte) (width, height int, ok bool)
- func ParseWinchRequest(s []byte) (width, height int, ok bool)
- func PtyReq(w, h uint32, modes ...ssh.TerminalModes) []byte
- func RandBytes(c int) []byte
- func SHA256(data []byte) []byte
- func SendPtyReq(chann ssh.Channel, w, h uint32, modes ...ssh.TerminalModes) error
- func String(str *string) string
- type PtyRequestMsg
- type RW
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESCbcDecrypt ¶
func AESCbcEncrypt ¶
func CheckBcrypt ¶
func InStringArray ¶
func ParsePtyRequest ¶
ParsePtyRequest parses the payload of the pty-req message and extracts the dimensions of the terminal. See RFC 4254, section 6.2.
func ParseWinchRequest ¶
func SendPtyReq ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.