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

Optional sha512 to spread out the final password for rand_pw app #2281

Merged
merged 8 commits into from
Oct 5, 2024

Conversation

zxkmm
Copy link
Contributor

@zxkmm zxkmm commented Oct 4, 2024

space usage:

the new added lib only use STL libs that other inner app codes already used, so no more spaces were taken.
before change: Space remaining in flash ROM: 7664 bytes ( 0.7 %)
after change: Space remaining in flash ROM: 7664 bytes ( 0.7 %)

outside code

lib is from https://github.com/ulwanski/sha512

safety

the sha-512 is predictable if you know previous code (the one that generated after rolling). but if you don't know the previous code, it would be hard to predict. So this change is safer

@zxkmm zxkmm changed the title sha512 the final password for rand_password app Optional sha512 to spread out the final password for rand_pw app Oct 4, 2024
@zxkmm zxkmm marked this pull request as ready for review October 4, 2024 08:34
@zxkmm zxkmm enabled auto-merge (squash) October 4, 2024 08:34
Copy link
Member

@gullradriel gullradriel left a comment

Choose a reason for hiding this comment

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

Good to go !

@zxkmm zxkmm merged commit 7d96bc4 into portapack-mayhem:next Oct 5, 2024
3 checks passed
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