René's URL Explorer Experiment


Title: [FEATURE REQUEST] Implement ChaCha20 stream cipher · Issue #7753 · TheAlgorithms/Java · GitHub

Open Graph Title: [FEATURE REQUEST] Implement ChaCha20 stream cipher · Issue #7753 · TheAlgorithms/Java

X Title: [FEATURE REQUEST] Implement ChaCha20 stream cipher · Issue #7753 · TheAlgorithms/Java

Description: What would you like to Propose? I would like to propose adding ChaCha20, a modern symmetric-key stream cipher, to the ciphers package. ChaCha20 is a stream cipher that generates a pseudorandom keystream using a 256-bit key, a 96-bit nonc...

Open Graph Description: What would you like to Propose? I would like to propose adding ChaCha20, a modern symmetric-key stream cipher, to the ciphers package. ChaCha20 is a stream cipher that generates a pseudorandom keys...

X Description: What would you like to Propose? I would like to propose adding ChaCha20, a modern symmetric-key stream cipher, to the ciphers package. ChaCha20 is a stream cipher that generates a pseudorandom keys...

Opengraph URL: https://github.com/TheAlgorithms/Java/issues/7753

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FEATURE REQUEST] Implement ChaCha20 stream cipher","articleBody":"### What would you like to Propose?\n\nI would like to propose adding **ChaCha20**, a modern symmetric-key stream cipher, to the `ciphers` package.\n\nChaCha20 is a stream cipher that generates a pseudorandom keystream using a 256-bit key, a 96-bit nonce, and a 32-bit block counter. It uses ARX (Addition, Rotation, and XOR) operations to generate 512-bit keystream blocks, which are XORed with plaintext to perform encryption and decryption.\n\nCurrently, the repository contains several classical and modern cryptographic algorithms, but does not appear to include a standalone ChaCha20 implementation.\n\n### Issue details\n\n### Algorithm Name\nChaCha20 Stream Cipher\n\n### Problem Statement\nImplement the ChaCha20 stream cipher in Java following the specification defined in [[RFC 8439](https://www.rfc-editor.org/rfc/rfc8439)](https://www.rfc-editor.org/rfc/rfc8439).\n\nThe implementation should generate a 512-bit keystream block from a 256-bit secret key, a 96-bit nonce, and a 32-bit block counter. The generated keystream should then be XORed with the input data to support encryption and decryption.\n\n### Proposed Implementation\n\nThe implementation should include the following components:\n\n1. **State Initialization:** Initialize the 4 × 4 state matrix using the predefined constants, secret key, counter, and nonce.\n2. **Quarter Round:** Implement the core ARX operations (addition, rotation, and XOR) with the specified rotation constants.\n3. **Round Operations:** Implement the 20-round transformation consisting of column rounds and diagonal rounds.\n4. **Block Generation:** Generate 64-byte keystream blocks by applying the ChaCha20 transformation and adding the original state.\n5. **Encryption:** XOR plaintext bytes with the generated keystream.\n6. **Decryption:** Reuse the same keystream generation process to recover the original plaintext.\n\n### Expected Behavior\n\n- Accept a 256-bit key and a 96-bit nonce.\n- Support arbitrary-length byte-array input.\n- Correctly process inputs spanning multiple 64-byte blocks.\n- Validate key and nonce lengths.\n- Handle empty input.\n- Ensure correct counter progression between blocks.\n- Prevent counter overflow and invalid counter usage.\n\n### Testing Requirements\n\nAdd JUnit tests covering:\n\n- RFC 8439 known test vectors.\n- Quarter-round correctness.\n- Block-function correctness.\n- Encryption and decryption round trips.\n- Empty input.\n- Inputs smaller than, equal to, and larger than 64 bytes.\n- Invalid key and nonce lengths.\n- Multiple-block encryption and decryption.\n- Counter boundary conditions.\n\n### References\n\n- [[RFC 8439 – ChaCha20 and Poly1305 for IETF Protocols](https://www.rfc-editor.org/rfc/rfc8439)](https://www.rfc-editor.org/rfc/rfc8439)\n- [[ChaCha20 Original Specification](https://cr.yp.to/chacha.html)](https://cr.yp.to/chacha.html)\n\n\n### Additional Information\n\n_No response_","author":{"url":"https://github.com/the404packet","@type":"Person","name":"the404packet"},"datePublished":"2026-11-12T13:21:04Z","url":"https://github.com/TheAlgorithms/Java/issues/7753"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6ea57e8e-0e8f-a026-d7dc-3e3c45b1baae
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9DA6:3833D:201922:2D3E01:6AFA8A1C
html-safe-nonce1a7677c916ed63efa2cb7320cfa2b3c2e8eb6d1c394ec5e68e7e31d73968163e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REE2OjM4MzNEOjIwMTkyMjoyRDNFMDE6NkFGQThBMUMiLCJ2aXNpdG9yX2lkIjoiODkxODU2NTA2NDQyMDI2NDQ3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac31e68fb1897d9c447638b8b86334236b944c1aeacb1e1d7d9d1333168f44b66a
hovercard-subject-tagissue:6350704223
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TheAlgorithms/Java/7753/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5ec17bb596b9de7d8e36859a68c91b031d44717d160ac404d0c7bc1631d8c7a0/TheAlgorithms/Java/issues/7753
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5ec17bb596b9de7d8e36859a68c91b031d44717d160ac404d0c7bc1631d8c7a0/TheAlgorithms/Java/issues/7753
og:image:altWhat would you like to Propose? I would like to propose adding ChaCha20, a modern symmetric-key stream cipher, to the ciphers package. ChaCha20 is a stream cipher that generates a pseudorandom keys...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamethe404packet
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-preview
go-importgithub.com/TheAlgorithms/Java git https://github.com/TheAlgorithms/Java.git
octolytics-dimension-user_id20487725
octolytics-dimension-user_loginTheAlgorithms
octolytics-dimension-repository_id63477660
octolytics-dimension-repository_nwoTheAlgorithms/Java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id63477660
octolytics-dimension-repository_network_root_nwoTheAlgorithms/Java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/TheAlgorithms/Java/issues/7753#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FJava%2Fissues%2F7753
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FJava%2Fissues%2F7753
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=TheAlgorithms%2FJava
Reloadhttps://github.com/TheAlgorithms/Java/issues/7753
Reloadhttps://github.com/TheAlgorithms/Java/issues/7753
Reloadhttps://github.com/TheAlgorithms/Java/issues/7753
TheAlgorithmshttps://github.com/TheAlgorithms
Javahttps://github.com/TheAlgorithms/Java
Codehttps://github.com/TheAlgorithms/Java
Issues3 (3)https://github.com/TheAlgorithms/Java/issues
Pull requests17 (17)https://github.com/TheAlgorithms/Java/pulls
Actionshttps://github.com/TheAlgorithms/Java/actions
Security and qualityhttps://github.com/TheAlgorithms/Java/security
Insightshttps://github.com/TheAlgorithms/Java/pulse
https://github.com/TheAlgorithms/Java
New issuehttps://github.com/login?return_to=https://github.com/TheAlgorithms/Java/issues/7753
New issuehttps://github.com/login?return_to=https://github.com/TheAlgorithms/Java/issues/7753
#7754https://github.com/TheAlgorithms/Java/pull/7754
[FEATURE REQUEST] Implement ChaCha20 stream cipherhttps://github.com/TheAlgorithms/Java/issues/7753#top
#7754https://github.com/TheAlgorithms/Java/pull/7754
enhancementhttps://github.com/TheAlgorithms/Java/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/the404packet
the404packethttps://github.com/the404packet
on Nov 12, 2026https://github.com/TheAlgorithms/Java/issues/7753#issue-6350704223
RFC 8439https://www.rfc-editor.org/rfc/rfc8439
https://www.rfc-editor.org/rfc/rfc8439https://www.rfc-editor.org/rfc/rfc8439
RFC 8439 – ChaCha20 and Poly1305 for IETF Protocolshttps://www.rfc-editor.org/rfc/rfc8439
https://www.rfc-editor.org/rfc/rfc8439https://www.rfc-editor.org/rfc/rfc8439
ChaCha20 Original Specificationhttps://cr.yp.to/chacha.html
https://cr.yp.to/chacha.htmlhttps://cr.yp.to/chacha.html
the404packethttps://github.com/the404packet
enhancementhttps://github.com/TheAlgorithms/Java/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Nov 12, 2026https://github.com/TheAlgorithms/Java/issues/7753#event-35916018769
https://github.com/the404packet
the404packethttps://github.com/the404packet
on Nov 12, 2026https://github.com/TheAlgorithms/Java/issues/7753#issuecomment-6824806583
@DenizAltunkapanhttps://github.com/DenizAltunkapan
DenizAltunkapanhttps://github.com/DenizAltunkapan
completedhttps://github.com/TheAlgorithms/Java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#7754https://github.com/TheAlgorithms/Java/pull/7754
on Nov 13, 2026https://github.com/TheAlgorithms/Java/issues/7753#event-36008130729
Sign up for freehttps://github.com/signup?return_to=https://github.com/TheAlgorithms/Java/issues/7753
Sign in to commenthttps://github.com/login?return_to=https://github.com/TheAlgorithms/Java/issues/7753
enhancementhttps://github.com/TheAlgorithms/Java/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.