Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

Releases

mojo-hashlib v0.1.4

Choose a tag to compare

@amarbarosys amarbarosys released this 08 Nov 23:01

mojo-hashlib-public v0.1.4

Released: 2026-11-08 · Commit: c901815 · Previous: v0.1.3

What it does

sha256, sha1 and md5 with incremental update() and hexdigest(), plus shlex quote, join and split, byte for byte the same as Python's hashlib and shlex.

Highlights

  • Packaging only: the conda recipe pins mojo-compiler to the minor the package was built with (<1.3.0a0), so it cannot be installed on a Mojo it does not load on.

Changes

Changed

  • recipe.yaml: mojo-compiler run dependency pinned to the build's minor (<1.3.0a0).

Verified

Check Result
pkg-conda dry run on the version commit (H1-H3,H6) PASS: mojo-hashlib-0.1.4-hb0f4dca_0.conda

Known limits

  • Packages are built on one Mojo minor only; see the package protocol.

Upgrade / run

None: no API change.

Commits

  • c901815 build: bump version to 0.1.4
  • 6c5f0c2 build: recipe pins mojo-compiler to the build's minor

mojo-hashlib v0.1.3

Choose a tag to compare

@amarbarosys amarbarosys released this 07 Nov 14:40

mojo-hashlib-public v0.1.3

Released: 2026-11-07 · Tag: v0.1.3 · Previous: v0.1.2

What it does

sha256, sha1 and md5 with incremental update() and hexdigest(), plus shlex quote, join and split, byte for byte the same as Python's hashlib and shlex.

Highlights

  • Docs only: CHANGELOG names no home path.

Changes

Changed

  • CHANGELOG.md and the release notes name no home path.

Verified

Check Result
mojo-lib-audit on this tree PASS
gh-publish --check (ci-local) OK

Known limits

Upgrade / run

None: no code or API change.

Commits

git log v0.1.2..v0.1.3

mojo-hashlib v0.1.2

Choose a tag to compare

@amarbarosys amarbarosys released this 04 Nov 14:36

mojo-hashlib v0.1.2

Released: 2026-11-04 · Commit: c2fe428 · Previous: v0.1.1

What it does

sha256, sha1 and md5 with incremental update() and hexdigest(), plus shlex quote, join and split, byte for byte the same as Python's hashlib and shlex.

Highlights

  • README gets an install and quickstart block and one example.

Changes

Added

  • Conda recipe (recipe.yaml).
  • README install and quickstart block, one example, and badges for CI, latest release and license.

Verified

Check Result
ci-local: the GitHub workflow in a clean Ubuntu 24.04 container PASS

Known limits

Upgrade / run

uv sync

Commits

  • c2fe428 fix(release): pyproject.toml, recipe.yaml and uv.lock say 0.1.2
  • 6dffd2b build: conda recipe
  • fad27d2 docs: one example, one install block
  • 3734629 docs: install and quickstart block
  • e03e0f9 fix(release): pyproject and uv.lock say 0.1.1, the version of the latest tag
  • ab1f959 docs: CI, latest-release and license badges

mojo-hashlib v0.1.1

Choose a tag to compare

@amarbarosys amarbarosys released this 29 Oct 21:10

mojo-hashlib v0.1.1

Released: 2026-10-29 · Commit: f070749 · Previous: v0.1.0

What it does

sha256, sha1 and md5 with incremental update() and hexdigest(), plus shlex quote, join and split, byte for byte the same as Python's hashlib and shlex.

Highlights

  • Builds and runs on the stable Mojo 1.2.0 release.

Changes

Changed

  • The pin moves to Mojo 1.2.0 (pyproject.toml, uv.lock); README and skill say Mojo 1.2.

Verified

Check Result
ci-local: the GitHub workflow in a clean Ubuntu 24.04 container, Mojo 1.2.0 PASS

Known limits

Upgrade / run

uv sync   # installs Mojo 1.2.0

Commits

  • f070749 build: Mojo 1.2.0
  • 3e50b45 docs: NOTICE names the owner and contact

mojo-hashlib v0.1.0

Choose a tag to compare

@amarbarosys amarbarosys released this 21 Oct 07:18

mojo-hashlib v0.1.0

Released: 2026-10-21 · Commit: 132cc40 · Previous: first release

What it does

sha256, sha1 and md5 with incremental update() and hexdigest(), plus shlex quote, join and split, byte for byte the same as Python's hashlib and shlex.

Highlights

  • Identical to Python on 77 cases, including the padding edges at 55, 56, 63, 64 and 65 bytes and 100 KB of random data.
  • shlex is about 30x faster than Python (100k rounds: 49 to 58 ms vs 1,551 to 1,562 ms); many small hashes 2x faster.
  • One fixed 64-byte block buffer per hasher; whole blocks are hashed straight from the caller's bytes.

Changes

First public release, no earlier version.

Verified

Check Result
scripts/check.sh: 77 cases vs Python hashlib and shlex PASS all
scripts/ci.sh on a pristine Ubuntu 24.04.5 VM PASS all

Known limits

  • Bulk hashing is slower than Python, which uses OpenSSL with the CPU's SHA instructions: sha256 5.3x, sha1 2.2x, md5 1.2x slower on 64 MiB.
  • No blake2 or sha512 yet.
  • shlex is POSIX mode only.

Upgrade / run

git clone https://github.com/amarbaro/mojo-hashlib && cd mojo-hashlib && uv sync
mojo run -I src examples/quickstart.mojo

Commits

  • 132cc40 docs: CI badge
  • 5a3a05b chore: real uv.lock, oracle docstring names only what it prints
  • a9edcce docs(hashlib): README, api, design, agent skill, quickstart and CI
  • 37d7393 bench(hashlib): hashes and shlex against Python, same work and same results
  • 3f8aa77 test(hashlib): edge cases for the documented API
  • a5d5149 test(hashlib): Mojo case runner for the oracle gate
  • 7ad5123 feat(hashlib): shlex quote, join and split
  • b201412 feat(hashlib): sha256, sha1 and md5 as one generic hasher
  • 9493e97 test(hashlib): hashlib and shlex oracle, 77 cases
  • 8c5c73c chore: repo layout, Apache-2.0, mojo>=1.1