What's the alternative to storing plain-text passwords in a Database?
For example, I'm using Node.js to get a POST request for signing up / logging in a user from a webpage.
When signing up a user, I get the parameters for the email and password from the request, and query it through the (Node.js) server. It then stores the data in SQL.
What's a way to not store plain-text passwords in the database? (because people recommend it but don't explain the alternative)
Edit: I already know about SQL injection, so I check the request data in the server.