Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Improve backup code verification performance #1070

Merged
merged 3 commits into from Jun 28, 2019

Conversation

ripzery
Copy link
Contributor

@ripzery ripzery commented Jun 24, 2019

Issue/Task Number: #1069

Closes #1069

Overview

This PR improves backup code verification performance by replacing the hashing logic as follow:

  • From Crypto.hash_password to Crypto.hash_secret
  • From Crypto.verify_password to Crypto.verify_secret

The PR also move the backup code hashing logic from EWallet.BackupCodeAuthenticator to EWalletDB.UserBackupCode so it's closer to the source (fewer data passing steps).

@ripzery ripzery added the kind/bug ⚠️ Something isn't working label Jun 24, 2019
@ripzery ripzery self-assigned this Jun 24, 2019
@ripzery ripzery requested review from T-Dnzt and removed request for sirn and jarindr June 26, 2019 10:28
@ripzery ripzery merged commit c48076d into v1.3 Jun 28, 2019
@ripzery ripzery deleted the 1069-fix-backup-code-verify-perf branch June 28, 2019 03:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug ⚠️ Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants