private key encryption routes and validations