encrypt and decrypt ping packets