{"id":47444066,"url":"https://github.com/kernelmethod/ChaChaCiphers.jl","last_synced_at":"2026-04-06T13:00:54.713Z","repository":{"id":40333212,"uuid":"490039214","full_name":"kernelmethod/ChaChaCiphers.jl","owner":"kernelmethod","description":"GPU-compatible implementations of the ChaCha stream cipher family","archived":false,"fork":false,"pushed_at":"2024-05-15T08:32:09.000Z","size":160,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-27T03:58:53.665Z","etag":null,"topics":["cryptography","rng"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kernelmethod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-05-08T19:41:57.000Z","updated_at":"2024-05-14T01:14:09.000Z","dependencies_parsed_at":"2026-02-27T00:04:26.098Z","dependency_job_id":null,"html_url":"https://github.com/kernelmethod/ChaChaCiphers.jl","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kernelmethod/ChaChaCiphers.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelmethod%2FChaChaCiphers.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelmethod%2FChaChaCiphers.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelmethod%2FChaChaCiphers.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelmethod%2FChaChaCiphers.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kernelmethod","download_url":"https://codeload.github.com/kernelmethod/ChaChaCiphers.jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelmethod%2FChaChaCiphers.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31473271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T08:36:52.050Z","status":"ssl_error","status_checked_at":"2026-04-06T08:36:51.267Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptography","rng"],"created_at":"2026-03-23T06:00:59.902Z","updated_at":"2026-04-06T13:00:54.708Z","avatar_url":"https://github.com/kernelmethod.png","language":"Julia","funding_links":[],"categories":["Cryptography"],"sub_categories":["Symmetric Encryption"],"readme":"# ChaChaCiphers\n\n[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://kernelmethod.github.io/ChaChaCiphers.jl/stable)\n[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://kernelmethod.github.io/ChaChaCiphers.jl/dev)\n[![Build Status](https://github.com/kernelmethod/ChaChaCiphers.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/kernelmethod/ChaChaCiphers.jl/actions/workflows/CI.yml?query=branch%3Amain)\n[![Coverage](https://codecov.io/gh/kernelmethod/ChaChaCiphers.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/kernelmethod/ChaChaCiphers.jl)\n\n[ChaChaCiphers](https://github.com/kernelmethod/ChaChaCiphers.jl) is a\nCUDA-compatible, pure-Julia implementation of the ChaCha family of stream\nciphers. This package provides:\n\n- fast, cryptographically-secure, and reproducible random number generators\n  implementing Julia's `AbstractRNG` interface for both CPU and GPU, and\n- implementations of ChaCha stream ciphers such as ChaCha20 that can be used as\n  building blocks for other cryptographic primitives, such as the\n  ChaCha20-Poly1305 AEAD algorithm.\n\nThe default stream cipher provided by this package follows [Daniel Bernstein's\noriginal implementation](https://cr.yp.to/chacha.html) (using a 64-bit counter\nand 64-bit nonce), which allows you to generate 1 ZiB of random data before the\nnonce must be recycled.\n\n## Installation\n\nYou can install ChaChaCiphers.jl with `julia\u003e ] add ChaChaCiphers` in the Julia\nREPL, or with `using Pkg; Pkg.add(\"ChaChaCiphers\");`.\n\n## Usage\n\nYou can start using ChaChaCiphers.jl for random number generation by creating a\n`ChaChaStream` instance:\n\n```julia\njulia\u003e using ChaChaCiphers\n\njulia\u003e rng = ChaChaStream();\n```\n\nThis will create a `ChaChaStream` with a randomly-generated key. Alternatively,\nyou can specify a key and pass it in to `ChaChaStream` to create a reproducible\nrandom number stream\n\n```julia\njulia\u003e key = UInt32.([\n          0xe2e39848, 0x70bb974d, 0x845f88b4, 0xb30725e4,\n          0x15c309dc, 0x72d545bb, 0x466e99e3, 0x6a759f91\n       ]);\n\njulia\u003e rng = ChaChaStream(key);\n```\n\nYou can then pass `rng` into random number generation functions like `rand` or\n`randn`:\n\n```julia\njulia\u003e rand(rng, UInt8)\n0x18\n\njulia\u003e rand(rng, 1:10, 3)\n3-element Vector{Int64}:\n 8\n 4\n 3\n\njulia\u003e randn(rng, 3)\n3-element Vector{Float64}:\n  0.4899558093907058\n -0.4164526650672216\n -0.864497576500388\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelmethod%2FChaChaCiphers.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkernelmethod%2FChaChaCiphers.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelmethod%2FChaChaCiphers.jl/lists"}