Question: how wpa and wpa2 works?
Answer: WPA2 uses the Counter Mode with Cipher Block Chaining Message Authentication Code Protocol (CCMP) protocol, based on the Advanced Encryption Standard (AES) algorithm for authentication and data encryption. ... The PTK is then used to encrypt and decrypt messages.