Skip to content
This repository was archived by the owner on Jul 17, 2026. It is now read-only.

use MD5 password hasher under test - #130

Merged
chris48s merged 1 commit into
codebuddies:masterfrom
chris48s:md5-hasher
Apr 10, 2020
Merged

use MD5 password hasher under test#130
chris48s merged 1 commit into
codebuddies:masterfrom
chris48s:md5-hasher

Conversation

@chris48s

@chris48s chris48s commented Apr 8, 2020

Copy link
Copy Markdown
Contributor

This restores the optimisation I removed in #109 to get the tests working.
Now that we're using Factories rather than fixtures, we can use what we want under test.

A good production password hashing algorithm is slow by design and hard to optimise. This makes it difficult to brute-force. The reason cookiecutter suggests this is because MD5 is not very secure but it is fast to calculate. We don't care about security of data we generate while running tests, but we do want it to be fast to build, so using a known vulnerable hash algorithm makes sense here. Its a bit of a micro-optimisation, but its definitely not going to make the tests run any slower, so we might as well re-enable it now.

@codecov

codecov Bot commented Apr 8, 2020

Copy link
Copy Markdown

Codecov Report

Merging #130 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #130   +/-   ##
=======================================
  Coverage   76.33%   76.33%           
=======================================
  Files          28       28           
  Lines         393      393           
=======================================
  Hits          300      300           
  Misses         93       93           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 412d7dd...008a04e. Read the comment docs.

@lpatmo lpatmo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sounds good! Thanks for the context, and feel free to merge. :)

@chris48s
chris48s merged commit c5eb5b6 into codebuddies:master Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants