Extract EncryptedUser functionality for use in other controllers

Rename this parameter?