Add route encryption functions