I am building a card holder application in which UI is in Angular 4 and Backend is in Spring Rest Service. Now, there is a login screen, so once user logs in he can see another screens like transaction history, currency list, currency rates etc.
Now, my challenges are: (1) How to encrypt username and password to prevent it from hacking. (2) How to maintain a user session as I have UI in Angular and backend in Spring Rest (Java)
Please help