playing with crypto in handshake

This commit is contained in:
jtieri 2021-09-16 00:25:33 -05:00
parent 71c26b9d31
commit 0312dd2f1c
2 changed files with 6 additions and 1 deletions

View File

@ -30,7 +30,7 @@ func ComposeCryptoParams() *packets.OutgoingPacket {
func ComposeSecretKey() *packets.OutgoingPacket {
packet := packets.NewOutgoing(1)
packet.WriteString("secretkey")
packet.WriteString("dsfsfaefsadfdsffdshdsfgfdfdsafdasefasdfasdfsdgfdsgdsfgsdfgds")
return packet
}

View File

@ -13,6 +13,7 @@ func InitCrypto(player *player.Player, packet *packets.IncomingPacket) {
func GenerateKey(player *player.Player, packet *packets.IncomingPacket) {
player.Session.Send(composers.ComposeAvailableSets())
player.Session.Send(composers.ComposeEndCrypto())
//player.Session.Send(composers.ComposeSecretKey())
}
func GetSessionParams(player *player.Player, packet *packets.IncomingPacket) {
@ -27,6 +28,10 @@ func UniqueID(player *player.Player, packet *packets.IncomingPacket) {
}
func SECRETKEY(player *player.Player, packets *packets.IncomingPacket) {
player.Session.Send(composers.ComposeEndCrypto())
}
func SSO(p *player.Player, packet *packets.IncomingPacket) {
token := packet.ReadString()