submit encryption function and getPhoto with encrypted parameter