How to user Info like Mobile number, Email id in server?

I want to store user info like mobile number, email id in server when user logs into mobile app.
So how to store securely?
Is it legal to store those info in server?
Which Algorithm is legal to use encrypt those info?