added crypto functionality to http auth