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

Decide on (not) unifying effectively-same salts of salt-only formats #5734

Open
solardiz opened this issue Mar 28, 2025 · 1 comment
Open
Labels

Comments

@solardiz
Copy link
Member

As mentioned in comments in #5720 and #5730, the commit 6c82f3a for the BitShares format results in correct de-duplication of effectively-same non-hashes at loading and cracking, but then --show and a second cracking run do not recognize the pot entry as matching also the other non-hash. So this may not be the way to go (one other way would be to unify in split rather than in get_salt), or maybe we need more changes.

Once we agree on how we'd like this to work, we could implement the same in the Bitcoin[-opencl] formats. (Are there any others needing it?)

Right now, for Bitcoin the behavior is similar to what it was for BitShares prior to the mentioned commits - the effectively-duplicate non-hashes are loaded as two distinct ones, cracked correctly (but with double the effort), and then indeed reported correctly. Ideally(?), we'd de-duplicate at load time, but without the subsequent drawbacks.

The simplest "fix" is to decide not to bother, and either to revert the referenced commit or just accept that if someone has both forms of such non-hashes, they may end up wasting effort on double the computation.

@solardiz solardiz added this to the Potentially 2.0.0 milestone Mar 28, 2025
@solardiz
Copy link
Member Author

The simplest "fix" is to decide not to bother, and either to revert the referenced commit

That's not so simple because a subsequent commit relies on the actually relevant 2 AES blocks being at the very start of the binary ciphertext buffer inside the salt struct. Of course, it can easily be revised, but it's not a simple git revert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant