Working EAP-AKA example
"autn""rand"
"res"
"username""ck""ik"
In summary, "autn" and "rand" are required to generate the EAP-AKA Request message. "res" is required to generate the EAP-AKA Response message.
{
"identifier": 0,
"username": "310990000047144",
"rand": <base64_encoded_rand_bytes>,
"res": <base64_encoded_res_bytes>,
"autn": <base64_encoded_autn_bytes>,
"ck": <base64_encoded_ck_bytes>,
"ik": <base64_encoded_ik_bytes>
}{
"identifier": 0,
"rand": <base64_encoded_rand_bytes>,
"res": <base64_encoded_res_bytes>,
"autn": <base64_encoded_autn_bytes>,
"k_aut": <base64_encoded_ck_bytes>
}./encode.py data.json# Decode without MAC validation
./decode.py <base64_encoded_eapaka_message>
# Decode with MAC validation
./decode.py <base64_encoded_eapaka_message> -k <base64_encoded_kaut>- Python 3