Security Interceptor and hash implementation added

Security Interceptor and hash implementation added
Issues:
- internal server error (500) instead of Not Authorized (401) is being
sent