Skip to content

Conversation

Prasad-JB
Copy link

This PR improves the Password Storage Cheat Sheet by updating the wording around the scrypt parameters to reduce confusion between CPU cost and memory cost. Specifically, it:

Clarifies the correct description of scrypt’s parameters (N, r, p) to better reflect their roles.

Suggests improved phrasing to accurately represent the trade-offs between CPU and RAM usage.

Fixes minor wording issues for better readability and accuracy in lines 118 and 126 of Password_Storage_Cheat_Sheet.md.

These changes aim to enhance the clarity and precision of the cheat sheet, helping readers better understand password hashing configurations.

@Prasad-JB
Copy link
Author

Hello! Just a gentle reminder about this PR — it clarifies scrypt parameters to reduce confusion between CPU and memory cost. Please let me know if you’d like any changes or additional explanations. Thanks for your time!

@jmanico
Copy link
Member

jmanico commented Aug 13, 2025

This may take time to approve, all password cheatsheet changes must be approved by @Sc00bz first :) Please give him time! :)


- N=2^17 (128 MiB), r=8 (1024 bytes), p=1
- N=2^16 (64 MiB), r=8 (1024 bytes), p=2
- N=2^15 (32 MiB), r=8 (1024 bytes), p=3
- N=2^14 (16 MiB), r=8 (1024 bytes), p=5
- N=2^13 (8 MiB), r=8 (1024 bytes), p=10

These configuration settings provide an equal level of defense. The only difference is a trade off between CPU and RAM usage.
These configuration settings provide a minimal level of defense. The only difference is a trade off between CPU and RAM usage.
Copy link
Member

Choose a reason for hiding this comment

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

I would say "a minimal and an equal" since both are true

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the suggestion! I can update the phrasing to “a minimal and an equal level of defense” if that works.

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.

2 participants