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

Implement basic encryption for passwords #130

Merged
merged 1 commit into from
Apr 24, 2020
Merged

Implement basic encryption for passwords #130

merged 1 commit into from
Apr 24, 2020

Conversation

annieyro
Copy link
Collaborator

What's new in this PR

  • Use expo-crypto to 'encrypt' passwords. We store only a hash. Salt is taken from Airtable-generated record IDs (see code for details).
  • Tried a couple of RN packages for more interesting implementations before remembering that we can only use Expo-compatible packages until we eject.

Relevant Links

Online sources

https://docs.expo.io/versions/latest/sdk/crypto/

If you haven't taken CS161 yet:
https://auth0.com/blog/adding-salt-to-hashing-a-better-way-to-store-passwords/

Related PRs

How to review

Sign up and login. You'll need to keep track of your passwords to log in so don't type gibberish!

Next steps

Push OTA updates to both live apps.

Eventually we'll either integrate with Airlock or disable password functionality entirely. We'll discuss further as a team

Screenshots

CC: @wangannie @FranCogMents

@wangannie wangannie requested a review from lvlcfm April 23, 2020 23:57
Copy link
Member

@wangannie wangannie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow this is very cool thank you for doing this :')

Copy link
Member

@lvlcfm lvlcfm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀 Awesome job @anniero98 !!!

@wangannie wangannie merged commit 9e749fd into master Apr 24, 2020
@wangannie wangannie deleted the annie/encrypt branch April 24, 2020 05:27
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

Successfully merging this pull request may close these issues.

None yet

3 participants