encrypt headers