What’s the Best Way to Securely Manage User Accounts in a Python App?

0
10
Asked By CuriousCat987 On

I'm developing a Python application that requires user account management. I've looked into services like Cryptolens, but they seem way too pricey for my needs. I understand that I could set up a Flask server with a database, but I'm really concerned about security, especially since I don't have much experience in this area. What would be the best approach to securely manage user accounts?

6 Answers

Answered By TechieTurtle33 On

Keycloak is an interesting option! You can self-host it and interact through its API—might be worth checking out if you're looking for a more robust solution.

Answered By DaringDove42 On

Have you considered using Django? It has a lot of built-in features for handling user accounts and security, which can take a lot of the burden off your shoulders.

Answered By TechSavvyTortoise99 On

You should store a secret key in your environment to encrypt and decrypt credentials. If you decide on Flask, check out Miguel Grinberg's Flask Mega-Tutorial for a solid guide on user logins!

Answered By SkepticalSquirrel88 On

Here's a simple approach:
1. Create a front end for users to enter their passwords.
2. Hash those passwords and save the hashed versions in your database.
3. During login, check if the hashed input matches the stored hash.
Just make sure you never store plain text passwords in your database!

CuriousCat987 -

Should I be worried about injections?

Answered By CuriousCat987 On
Answered By ChillCheetah76 On

Firebase might be a good option too if you want a managed service that handles a lot of the security aspects for you.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.