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

Is it secure to store user's login data, passwords? #217

Closed
baimurzin opened this issue Apr 26, 2017 · 2 comments
Closed

Is it secure to store user's login data, passwords? #217

baimurzin opened this issue Apr 26, 2017 · 2 comments
Labels

Comments

@baimurzin
Copy link

Is it secure to store user's login data, passwords?

@ccutch
Copy link

ccutch commented Jun 26, 2017

I would not store sensitive user data (emails, passwords, ect) for user login i would suggest a third party such as uport. If you are making a simple app, as I first did when learning about orbit, you can try what i tried which is to encrypt both the email and password such that the given encryption can be checked later (see code snippet at the bottom) though this is not very safe from phishing attacks and brute force.

// email, password given
// store = orbit-kv-store
email_hash = sha256(email)
user_key = sha256(email + password)

// to store login
store.set(email_hash, user_key)

// to check user
store.get(email_hash) == user_key

@haadcode
Copy link
Member

haadcode commented Sep 4, 2017

Agreed with @ccutch. See #229 (comment) for more details.

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

No branches or pull requests

3 participants