receiver static method

void receiver()

Implementation

static void receiver() {
  // Simulate receiving the encrypted data over the network
  receive_data_over_network().then((receivedData) {
    // Create a packet with the received data
    var packet = Packet(receivedData);

    // Decrypt the packet using Kaalka algorithm
    packet.decrypt();
    print("Decrypted Message: ${packet.data}");
  });
}