frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Rscrypto, pure-Rust crypto with industry leading public benches

https://github.com/loadingalias/rscrypto
8•LoadingALIAS•57m ago

Comments

LoadingALIAS•44m ago
I've built rscrypto because crypto kept being where my Rust database stopped being portable: different stack on the server, different target story on WASM, different answer on RISC-V/POWER/IBM Z, and a different audit surface every time I added a primitive. The supply chain risk, given the landscape we're in today, was too high.

v0.3.1 is one feature-selected crate. Leaf features when you need one primitive (`sha2`, `rsa`, `aes-gcm`, `ed25519`, etc.) or `full` for the stack. Scope includes SHA-2/3, SHAKE, cSHAKE256, BLAKE2, BLAKE3, Ascon hash/XOF, XXH3, RapidHash, CRCs, HMAC, KMAC256, HKDF, PBKDF2, Argon2, scrypt, PHC strings, RSA, Ed25519, X25519, AES-128/256-GCM, AES-128/256-GCM-SIV, ChaCha20-Poly1305, XChaCha20-Poly1305, AEGIS-256, and Ascon-AEAD128.

The primitive stack has zero default deps and no C-libs or FFI. Optional `getrandom`, `serde`, and `rayon` features stay out until enabled.

The current bench evidence is across nine Linux runners (Intel Sapphire Rapids, Intel Ice Lake, AMD Zen4, AMD Zen5, Graviton3, Graviton4, IBM Z/s390x, IBM POWER10/ppc64le, RISE RISC-V) and my local Apple MBP M1.

Linux vs. fastest-external: 3,545 wins and 5,210 wins-or-ties out of 5,832 comparisons, 1.61x geomean.

MBP M1 vs fastest-external: 235 wins and 450 wins-or-ties out of 463 comparisons, 1.25x geomean.

BLAKE3 large inputs (`>=64 KiB`) are 2.31x geomean improvement across Linux vs the official `blake3` crate and 1.80x on MBP M1.

While it's not universally faster - it's incredibly close. Current weak spots include PBKDF2-SHA256 setup at `iters=1`, X25519 DH, RSA verification on Arm/RISC-V, small-message AEAD rows, MBP M1 BLAKE3 64 KiB rows, HMAC-SHA256 bulk pressure against `aws-lc-rs`, and SHA3-256 streaming on Apple Silicon. The `./benchmark_results/OVERVIEW.md` lists the losses next to the wins in more detail.

Trust, Testing, Etc: portable Rust is the byte-for-byte authority. SIMD/ASM paths are accelerators and are differential tested against the portable path. MAC, AEAD, and signature comparisons are constant-time. Secret-bearing types zeroize on drop. I've got a pretty thorough Miri and Fuzzer testing gate setup, too. The RSA impl has it's own CI gate. Codecov = 73.06, fuzzing included.

This is not FIPS 140-3 validated, not a TLS stack, not a key store, and not third-party audited yet. I am genuinely interested in a third-party audit and would LOVE to plan for FIPS 140-3 validation, but it's just out of my reach right now.

The codebase/lib is obviously pre-v1 and I'm asking for public review while API changes are still relatively cheap.

Repo: https://github.com/loadingalias/rscrypto Crate: https://crates.io/crates/rscrypto Benches: https://github.com/loadingalias/rscrypto/blob/main/benchmark... Migration Guides: https://github.com/loadingalias/rscrypto/blob/main/docs/migr... Me: https://x.com/loadingalias

If you're testing, benching, etc. and happen to stumble across inconsistencies, vulnerabilities, etc. - please just reach out directly via 'X' or use Github's Vulnerability Reporting. There are a decent number of people already using the library.

Also, the 'fastest-external' competitors for perf comparisons are almost always one of the following: aws-lc-rs, ring, RustCrypto, dryoc, OpenSSL, Blake3 and/or one of the many 'crc-fast/fast-crc' crate variations. I benched these external crates against eachother in the beginning to trace the most performant before hunting inefficiency and cutting out any external deps/c-libs. So, if the benches show a 2x geomean over Blake3... that means it's over the fastest implementation of Blake3 I could find and bench publicly.

Phosphene

https://en.wikipedia.org/wiki/Phosphene
1•soupspaces•2m ago•0 comments

Server-Side WebRTC Noise Reduction with Pion, FFmpeg, and RNN Models

https://www.lodan.me/posts/server-side-webrtc-noise-reduction-pion-ffmpeg-rnn/
1•Sean-Der•2m ago•0 comments

Python 3.15.0 beta 2 is here

https://blog.python.org/2026/06/python-3150-beta-2/
1•lumpa•2m ago•0 comments

Five Levels of Adding AI to Your SaaS App

https://shivekkhurana.com/blog/five-levels/
1•shivekkhurana•7m ago•0 comments

The Florida woman catfishing America's political class

https://www.politico.com/news/2026/06/02/bumble-new-jersey-gamble-catfishing-crowder-00941061
1•_tk_•7m ago•0 comments

Umami: An open-source alternative to Google Analytics, Mixpanel and Amplitude

https://github.com/umami-software/umami
1•ksec•9m ago•0 comments

Free vLLM Course: Inference, Compression, Benchmarks

https://www.deeplearning.ai/courses/fast-and-efficient-llm-inference-with-vllm
2•twelvenmonkeys•11m ago•0 comments

The Bloat

https://milkandcigarettes.com/notes/devlog/the-bloat
1•tarxzvf•14m ago•0 comments

Facing life-threatening miscarriage in Arkansas, calls to governor didn't help

https://www.cnn.com/2026/05/28/health/arkansas-miscarriage-abortion-ban-propublica
4•orwin•15m ago•1 comments

The Relaunch of the Old West and Why I Chose Vanilla PHP

https://blog.alexseifert.com/2026/06/02/the-relaunch-of-the-old-west-and-why-i-chose-vanilla-php/
1•SeenNotHeard•16m ago•0 comments

Batching API Calls

https://www.mostlypython.com/batching-api-calls/
1•speckx•17m ago•0 comments

Show HN: Mashines.dev – Live-migrate microVMs between hosts without restarting

https://mashines.dev/
1•ktaraszk•19m ago•0 comments

Impermeabiliza uses AI to modernize waterproofing in Valencia

https://impermeabiliza.net/
1•ignival•22m ago•0 comments

Microsoft unveils new AI models

https://microsoft.ai/models/
5•helloplanets•23m ago•0 comments

Tesla Cybertruck resale value plunges amid sales slump

https://www.msn.com/en-us/money/companies/tesla-cybertruck-resale-value-plunges-amid-sales-slump/...
5•petethomas•23m ago•2 comments

AI enthusiasts racing against time; AI skeptics are racing against entropy

https://charitydotwtf.substack.com/p/ai-enthusiasts-are-in-a-race-against
1•SLHamlet•25m ago•0 comments

AgentSight: System-wide AI agent tracing and monitoring with eBPF

https://github.com/eunomia-bpf/agentsight
2•tanelpoder•25m ago•0 comments

I believe a whole generation of developers miss how open source used to work

https://twitter.com/mitsuhiko/status/2062181646804152626
4•tosh•26m ago•1 comments

Gooey: A GPU-accelerated UI framework for Zig

https://github.com/duanebester/gooey
3•ksec•26m ago•0 comments

Network State Propaganda

https://capirates.substack.com/p/theyre-telling-you-exactly-what-theyre
3•tjcrowley•27m ago•0 comments

The 15-minute city is a dead end

https://blogs.lse.ac.uk/covid19/2021/05/28/the-15-minute-city-is-a-dead-end-cities-must-be-places...
1•Anon84•29m ago•0 comments

Book of Cron Job [fiction]

https://www.nature.com/articles/d41586-026-01716-0
2•apotheosized•29m ago•0 comments

Show HN: Hive Trust – Ed25519-signed benchmarks for every AI inference primitive

https://thehiveryiq.com/trust/
1•thehivery•30m ago•0 comments

Knowable – Open-Source Personal AI Tutor on macOS

https://knowable.ca/
2•samuelzxu•31m ago•1 comments

See SBA Loans Around You

https://www.loanround.com
1•zarie•32m ago•0 comments

Safe Made Easy Pt.2: Don't Fear the Ref

https://ergeysay.github.io/safe-made-easy-pt2.html
3•ergeysay•32m ago•0 comments

I benchmarked Opus 4.8 vs. GPT 5.5 on 2 open source repos

https://www.stet.sh/blog/opus-48-vs-gpt-55-vs-opus-47-vs-composer-25
3•bisonbear•32m ago•0 comments

The Download: Trump's new AI order, and smart glasses for warfare

https://www.technologyreview.com/2026/06/03/1138322/the-download-trump-ai-order-smart-glasses-war...
1•joozio•34m ago•0 comments

10M requests in my bot black hole

https://gladeart.com/blog/10-million-requests-in-my-bot-black-hole-here-is-some-information
1•itsJustTrivial•35m ago•0 comments

Stats from 30K AI debates: Opus 4.7 is the most influential model

https://opper.ai/ai-roundtable/stats
6•felix089•35m ago•1 comments