Ethical hacking of WiFi: WPA and WPA2 encryption