{"id":32153889,"url":"https://github.com/erich-9/shake.jl","last_synced_at":"2026-02-25T02:33:11.899Z","repository":{"id":220956172,"uuid":"752695994","full_name":"erich-9/SHAKE.jl","owner":"erich-9","description":"SHAKE128 and SHAKE256 for Julia ","archived":false,"fork":false,"pushed_at":"2025-08-25T10:35:45.000Z","size":28,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T17:55:38.374Z","etag":null,"topics":["julia","shake128","shake256"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erich-9.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}},"created_at":"2024-02-04T14:59:43.000Z","updated_at":"2024-11-29T12:42:11.000Z","dependencies_parsed_at":"2024-02-23T19:24:42.613Z","dependency_job_id":"38664624-11bc-4567-ae21-4e11c9568689","html_url":"https://github.com/erich-9/SHAKE.jl","commit_stats":null,"previous_names":["erich-9/shake.jl"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/erich-9/SHAKE.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erich-9%2FSHAKE.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erich-9%2FSHAKE.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erich-9%2FSHAKE.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erich-9%2FSHAKE.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erich-9","download_url":"https://codeload.github.com/erich-9/SHAKE.jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erich-9%2FSHAKE.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280255733,"owners_count":26299338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["julia","shake128","shake256"],"created_at":"2025-10-21T11:47:02.730Z","updated_at":"2025-10-21T11:47:04.281Z","avatar_url":"https://github.com/erich-9.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SHAKE\n\n[![Build Status](https://github.com/erich-9/SHAKE.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/erich-9/SHAKE.jl/actions/workflows/CI.yml?query=branch%3Amain)\n[![Coverage](https://codecov.io/gh/erich-9/SHAKE.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/erich-9/SHAKE.jl)\n[![Aqua](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)\n\nImplementation of the [extendable-output functions](https://en.wikipedia.org/wiki/Extendable-output_function) (XOF's) SHAKE128 and SHAKE256 based on the [SHA-3](https://en.wikipedia.org/wiki/SHA-3) implementation in the Julia Standard Library.\n\n## Installation\n\nInstall with the Julia package manager [Pkg](https://pkgdocs.julialang.org/), just like any other registered Julia package:\n\n```jl\npkg\u003e add SHAKE  # Press ']' to enter the Pkg REPL mode.\n```\n\nor\n\n```jl\njulia\u003e using Pkg; Pkg.add(\"SHAKE\")\n```\n\n## Usage\n\nLoading the package will export `shake128_xof` and `shake256_xof` as well as `shake128` and `shake256` and finally also `SHAKE128RNG` and `SHAKE256RNG`:\n\n```jl\nusing SHAKE\n```\n\nThe methods `shake128_xof` and `shake256_xof` may be used as infinite iterators:\n\n```jl\nfor (i, b) in enumerate(shake256_xof(b\"Hash me!\"))\n    if iszero(b)\n        println(\"Found first null byte at position $i\")\n        break\n    end\nend\n```\n\nThe random byte generators `SHAKE128RNG` and `SHAKE256RNG` subtype `AbstractRNG` and can be used as follows:\n\n```jl\nrng = SHAKE128RNG(b\"Hash me!\")\n\nsome_random_bytes = rand(rng, UInt8, 47)\nmore_random_bytes = rand(rng, UInt8, 11)\n```\n\nFor convenience, there also are `shake128` and `shake256`, which compute an output of a specified, fixed length:\n\n```jl\nshake128(b\"Hash me!\", 32)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferich-9%2Fshake.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferich-9%2Fshake.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferich-9%2Fshake.jl/lists"}