simplify encryption and decryption of router requests and define own exceptions