Scapy fields under encryption
OK, at the beginning I put the fields behind the encryption in a packet, and do all the encryption magic in post_build (encrypt) and pre_dissect (decrypt), but that was really tricky... so Instead I created another packet (EncryptedPacket) which overloads addfield and getfield to do all the encryption stuff, this solution is much cleaner and nicer then the previous one. I will add examples later.
I have a protocol with encrypted fields.
I want to be able when dissecting the packet, decrypt them
and when building it will encrypt them (lets say I know the private\public key...).
Need this for changing the fields under the encryption.
What is the best way to do this with scapy... 
I couldn't find anything usefull..
maybe something with post_build post_dissect ?