Skip to content

Document repository purpose and SHA-256 circular hash attack demonstration#4

Draft
Copilot wants to merge 1 commit intomasterfrom
copilot/unknown-branch-name
Draft

Document repository purpose and SHA-256 circular hash attack demonstration#4
Copilot wants to merge 1 commit intomasterfrom
copilot/unknown-branch-name

Conversation

Copy link

Copilot AI commented Feb 4, 2026

Explored and documented the repository's purpose in response to "what is this" question.

Repository Overview

This cryptographic research project demonstrates a circular hash attack (fixed-point) on full-round SHA-256, where a specific input hash and message block produce the same hash as output (input_hash = output_hash).

Key demonstration:

  • Input hash: ad3381f1 8f9dae20 5419ec4e c0a9c019 839a030f e8bfad5a d308ae65 3a456ff1
  • Message block cycles back to produce identical output hash
  • Enables infinite collision chains for that hash value

Technical Details

  • Pure Python SHA-256 implementation (sha256.py)
  • Working proof-of-concept demonstration (proof.py)
  • Attack applies to full rounds, not reduced variants
  • Code written in Python 2 syntax (contains L suffix long literals)

Note

Repository name clarified: not world's first attack of this type. Finding such fixed points remains computationally hard (complexity > 2^(n/2)).

Original prompt

what is this


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI assigned Copilot and laie Feb 4, 2026
Copilot AI changed the title [WIP] Unknown pull request title Document repository purpose and SHA-256 circular hash attack demonstration Feb 4, 2026
Copilot AI requested a review from laie February 4, 2026 13:19
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