Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyrebase storing password in plain text. How can I encrypt it? #423

Open
pandyaved98 opened this issue Jul 19, 2022 · 4 comments
Open

Pyrebase storing password in plain text. How can I encrypt it? #423

pandyaved98 opened this issue Jul 19, 2022 · 4 comments

Comments

@pandyaved98
Copy link

Make sure these boxes are checked before submitting your issue:

[x] Check that your version of Python is 3.4+
[x] Check that you are on the newest version of Pyrebase
[x] Check that the Email/password provider is enabled in your Firebase dashboard under Auth -> Sign In Method.

Please don't be discouraged if you do not get a response to your issue quickly,
I maintain Pyrebase for fun and don't always have as much free time as I'd like.

Thank you for helping make Pyrebase better!

@AsifArmanRahman
Copy link

Hi there, are you storing your password in database?

@pandyaved98
Copy link
Author

Yes, I'm using Realtime Database from Firebase.

@AsifArmanRahman
Copy link

First of all sorry for asking but why would you like to store password in database, when it is already stored an kept hidden for security in Authentication?

Also to answer your question, realtime database stores the exact info you set/push to store. Now you can choose to store the password using the same hashed code used to by your firebase project in Authentication but you'll have to do it manually yourself. Clicking on the highlighted menu (which appears after clicking the three doted eclipse button) you find the that code.

Screenshot 2022-07-20 133350

@AsifArmanRahman
Copy link

First of all sorry for asking but why would you like to store password in database, when it is already stored an kept hidden for security in Authentication?

Also to answer your question, realtime database stores the exact info you set/push to store. Now you can choose to store the password using the same hashed code used to by your firebase project in Authentication but you'll have to do it manually ...

If you find it helpful, please consider using firebase-rest-api available in PyPI, which I recently started maintaining as both pyrebase and pyrebase4 aren't maintained anymore.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants