Implement protocol encryption #2
@ -65,6 +65,7 @@ defmodule Amethyst.ConnectionState.Login do
|
||||
if Application.get_env(:amethyst, :encryption, true) do
|
||||
verify_token = :crypto.strong_rand_bytes(4)
|
||||
public_key = Amethyst.Keys.get_pub()
|
||||
Logger.debug("Public key: #{inspect(public_key, limit: :infinity)}")
|
||||
send(self(), {:send_packet, %{
|
||||
packet_type: :encryption_request,
|
||||
server_id: "",
|
||||
|
Loading…
Reference in New Issue
Block a user