HN user

randomint64

614 karma
Posts67
Comments11
View on HN
github.com 1mo ago

Stdx: Rust's Extended Standard Library

randomint64
5pts1
www.theverge.com 1mo ago

AI "content creators" are getting harder to spot

randomint64
4pts0
kerkour.com 1mo ago

The problem with Rust for back end services

randomint64
3pts0
kerkour.com 1mo ago

Rust is a great fit for the agentic era

randomint64
4pts1
kerkour.com 2mo ago

Deep Dive into SHA-3: Understanding Keccak and Sponge Functions

randomint64
2pts0
kerkour.com 2mo ago

Smartphones Are Black Holes

randomint64
1pts0
kerkour.com 2mo ago

Passwords suck. Can passkeys replace them?

randomint64
2pts0
kerkour.com 2mo ago

The limits of Rust, or why you should probably not follow Amazon and Cloudflare

randomint64
90pts87
kerkour.com 2mo ago

Like solar, Rust is inevitable

randomint64
1pts0
kerkour.com 2mo ago

All databases will eventually be (re)written in Rust

randomint64
6pts1
kerkour.com 2mo ago

All databases will eventually be (re)written in Rust

randomint64
3pts0
kerkour.com 3mo ago

How to implement cryptographically-secure API keys

randomint64
2pts1
kerkour.com 3mo ago

AI (and) Maximalism

randomint64
1pts0
kerkour.com 3mo ago

Supply chain nightmare: How Rust will be attacked and how to mitigate attacks

randomint64
11pts0
kerkour.com 3mo ago

Optimizing SQLite for Servers

randomint64
10pts0
kerkour.com 3mo ago

Using Rust and Postgres for everything: patterns learned over the years

randomint64
5pts0
kerkour.com 3mo ago

Building pentest devices with Rust and ESP32-C6 microcontrollers

randomint64
5pts0
kerkour.com 3mo ago

Building pentest devices with Rust and an ESP32-C6

randomint64
4pts1
kerkour.com 4mo ago

Using Rust and Postgres for everything: patterns learned over the years

randomint64
2pts0
kerkour.com 4mo ago

Overthinking

randomint64
1pts0
kerkour.com 4mo ago

Is NIST's Cryptography Backdoored?

randomint64
5pts3
kerkour.com 5mo ago

Writing Against the Global Lobotomy

randomint64
3pts0
kerkour.com 5mo ago

Deploying Rust to Production Checklist

randomint64
2pts1
kerkour.com 5mo ago

Deploying Rust to Production Checklist

randomint64
4pts0
kerkour.com 5mo ago

Breaking SHA-256: length extension attacks in practice

randomint64
2pts1
kerkour.com 6mo ago

SIMD programming in pure Rust

randomint64
107pts56
kerkour.com 6mo ago

SIMD Programming in Pure Rust

randomint64
5pts0
kerkour.com 6mo ago

Introduction to SIMD programming in pure Rust

randomint64
2pts0
kerkour.com 7mo ago

(Social) media manipulation in one image

randomint64
51pts52
kerkour.com 7mo ago

Notes on building end-to-end encrypted and CRDT-based local-first applications

randomint64
6pts0

The attack would be like: attacker has read/write access to the database but not to the code of the backend service. Attacker swaps the hash of a targeted API key with the hash of their own API key. Attacker has now access to the resources of the targeted organization when using their own API key.

While it's true that API keys are basically prefix + base32Encode(ID + secret), you will want a few more things to make secure API keys: at least versioning and hashing metadata to avoid confused deputy attacks.

Here is a detailed write-up on how to implement production API keys: https://kerkour.com/api-keys

Rust is just a tool 5 months ago

Sherlock Holmes liked to say "When you have eliminated the impossible whatever remains, however improbable, must be the truth".

The same is true for programming languages. When you have eliminated all the others for their fatal flaws, only Rust remains, so it's not "just a tool", it's the best tool (or less worse, depending on how you like the syntax).

You can read more about the technical reasons here: https://kerkour.com/rust-software-engineering-reliability

Indeed, Rust's supply chains story is an absolute horror, and there are countless articles explaining what should be done instead (e.g. https://kerkour.com/rust-stdx)

TL;DR: ditch crates.io and copy Go with decentralized packages based directly on and an extended standard library.

Centralized package managers only add a layer of obfuscation that attackers can use to their advantage.

On the other hand, C / C++ style dependency management is even worse than Rust's... Both in terms of development velocity and dependencies that never get updated.

WebAuthn may be one of the most important security technology of the decade. It's a revolution in key management, which may be the hardest part of applied cryptography.

Passkeys enable phishing-resistant and 1-click authentication.

The PRF extension discussed here enables end-to-end encryption of data (with envelope encryption). Think about secure chat backups, double factor disk encryption (password + security key) and much more.

Soon we will be able to sign apps bundle (APKs, IPAs) with hardware security keys.

Great times are ahead for those who care about securing their users' data.

As an avid reader, I'm disappointed by Amazon's decision to discontinue individual newspaper and magazine subscriptions in favor of Kindle Unlimited. This change reduces my ability to support specific publications I value, potentially leading to less variety in the market.

It diminishes my sense of ownership, as content becomes more ephemeral within a subscription service.

I really can't wait for competitors to shake down this predatory monopoly.