[AP]{test after code} Encryption test function