Hacker Newsnew | past | comments | ask | show | jobs | submit | hadlock's commentslogin

>140 requests per day

Who is setting 10 timers per hour? I WFH and maybe use google home 6-8 times a day, mostly to turn on and off lights, and set 1-2 timers/alarms per day. I can't imagine talking to a computer 140 times a day.


Replying to text messages from my wife handsfree while driving, I can use dozens of requests. Especially if a typo/retry eats a request.

It is criminal how functionality that can be fully handled on-device with today's hardware (listen for wake word >> transcribe dictated message >> route to messaging recipient) are now being shoved into server side processing because AI. Similar things have been happening with Google Assistant on Android and it is bad to the point that I'm using my AI subscriptions to vibe code replacements to enshitified features that should be local on-device.

The new guy fresh out of school is hard at work rewriting it in rust for a promotion

I appreciate the 3B model to experiment with locally; but would have been great to see a more functional ~27B class model particularly given the 1.1T/598B model is MoE.

The 3B model listed is just the DSpark drafter for the larger model, not a standalone model

More importantly, the M-Vave FM-1 simply needed a valid CRC to verify the new firmware; no locking (and therefor no hacking) of any kind.

AMD And Nvidia both sell 32gb cards for under $4000. 32GB cards with MoE probably eat too much into their low to midrange commercial customer profit though. If I could get a 5090 with 192gb vram instead of a 6000 with 96gb vram, I would order those for work.

If you even did 90 seconds of reading on encryption, you'd know that is not at all how any of this works.


Visa and Mastercard just issue you a 100-thick pad of post-it notes with one-time use numbers (aka one-time pad) you carry around with you everywhere, and you use the number on top, peel it off and throw it away for every transaction. One time pads are secure as long as the RNG used to generate them aren't compromised.

We could also imagine mailing TB-scale one-time pads, maybe backed by cheap tapes (with prefetching to hide latency).

To make it less annoying, users could pick a single OTP service, which then talks to other services with physically secure links when possible, or with their own OTPs.

Devices could come with OTPs pre-loaded. Hopefully they'll make them replaceable...

Add in Carter-Wegman MACs, and we can get something like TLS 2.0 with information-theoretic security.


information-theoretic security, but with the huge caveat that the OTP service can read and modify anything you send to another party, right? In this model there is no way to make the OTP service untrusted, since it would need to de-encrypt the message from you and re-encrypt the message for the receiving party? Without directly exchanging OTPs with the subject of your communication there is no way to provide authentication or secrecy, right?

You're right, although there could be a couple workarounds

- Yubikey-style OTP devices for certain sensitive services like banks. (Granted, less convenient than what we have today.)

- A scheme with multiple OTP services can be made secure if at least one is honest. In a way this would be an improvement, since TLS basically assumes all root CAs are honest. It would increase costs though.


You can compose OTPs pretty easily and use multiple pads, which would all have to be intercepted/collude to break the system. It doesn't provide authentication, but it would still be secret from any other party under some threat models.

There are basically no physically secure links.

I think a lot of intra-datacenter links could be considered secure enough. We have to trust datacenter staff, but typically we already trust them not to extract secrets from servers etc.

Granted backbone providers might need to use their own OTPs, so it could be the end of very cheap backbone traffic.


https://en.wikipedia.org/wiki/MUSCULAR

"In the program, data was obtained through a network tap between individual data centers of Yahoo! and Google. To what extent the program exists as of 2026 is not publicly known."


Exactly. That single slide prompted Google to stop trusting their private inter-DC links and start encrypting communication between DCs.

Those were inter-datacenter links though; my argument is that intra-datacenter links can be secure enough.

(Not that it's implausible for the government to tap say a link in a meet-me room, but it's harder to do covertly. And if they can do that, they could probably also just tap a server's memory bus or something.)


Letsencrypt relies on physically secure links.

All you need to share with Visa and Mastercard is a deterministic process (e.g. their app) to generate a random sequence, and a seed, and an offset.

Take a fast and cryptographically secure hash like BLAKE3, hash the seed, slice 1 byte, use rest as input to next round of hash, repeat.

Now you have a practically random stream of bytes that can be generated by anyone with the same process and seed. Offset lets you share the seed once and count off offsets for blocks of bytes used for your one time pad. If Visa and Mastercard decide to settle on a fixed transaction size in bytes, then the offset is just a counter or txn number.


What you're describing is a symmetric encryption scheme based on the security of BLAKE3. With this, you don't actually need a stateful concept of 'offset'; you can just combine the shared secret with a random long seed each time, which doesn't need to be kept secret or be particularly high-quality randomness (it only needs to not repeat). This is an IV.

The scheme works, but there's no particular reason to expect BLAKE3 to be more secure than AES, other than because it's slower.


Sure a onetime pad is a symmetric scheme. I am not placing any security merit on the performance of this hash, rather the applicability options that that affords. And yes i am certainly relying on the algo being secure and ofc you can substitute something else. The offset approach is just one of a variety of approaches possible. I.e. just smush secret and seqnum and generate pad for one specific exchange. So bottom line if you can share a manageable little secret, then you can have arguably very secure encryption .

A one-time pad, by definition, uses a pre-shared key that is truly random, equal in length to the message, and never reused. A "one-time pad" based on deterministically generated random numbers is not a one-time pad at all, but a stream cipher: https://en.wikipedia.org/wiki/Stream_cipher

In the scenarios discussed where cryptographic problems can be trivially solved, then stream ciphers would fall just like any other type of cipher, since the underlying PRNG could be broken.


You're right. Pedantic semantics, imo. If it makes you happy, use the function to emit fixed length blocks of bytes as pads, print them and hand it out. Or use it as a stream cypher if you want. I mean, the whole point is "how to create shared blocks of bytes instead off handing out stickit notes per GP".

Far from pedatry, it's an important distinction because one-time pads are secure and stream ciphers aren't, in the context of the discussion.

Kotlopou: what happens in a world where all cryptography turns out to be trivially breakable?

hadlock: guess we'll have to carry around stacks of one-time pads

yubblegum: no you wouldn't, <proposes a cryptographic scheme that would be trivially breakable in the world under discussion>

> use the function to emit fixed length blocks of bytes as pads, print them and hand it out.

That's a stream cipher with extra steps, and is just as breakable.

> I mean, the whole point is "how to create shared blocks of bytes instead off handing out stickit notes per GP".

This is impossible in the scenario under discussion, which assumes any deterministic function can be broken.


A one time pad is a secure as the mechanism that generated it.

> yubblegum: no you wouldn't, <proposes a cryptographic scheme that would be trivially breakable in the world under discussion>

If it is "trivially breakable", walk us through how you would break e.g. BLAKE3.


The parent comment is talking about cryptography in a hypothetical "Pessiland" where, according to the linked definition:

> any process f(x) that is easy to compute is also easy to invert in the sense that, for almost all values of x, given f(x), it is possible to find some x' with f(x') = f(x) in roughly the same amount of time it took to compute f(x).

In other words, under this hypothetical, any hash function like BLAKE3 is also (almost always) invertible. So, one possible attack against your stream cipher is: if you have a ciphertext and a crib, then you can invert the hash function to recover one possible key and decrypt the rest of the message (there may be multiple candidates, but the probability of more than one match decreases exponentially as the length of the crib increases).

Of course, if BLAKE3 is indistinguishable from a true random number generator, the stream cipher is indistinguishable from a true one-time pad. But no PRG has yet been proven indistinguishable from true randomness (as such would be a proof that P ≠ NP); and our premise is that such a PRG cannot exist and all PRGs are trivially breakable, which is why the distinction between OTP and a stream cipher is significant.


IFF you used the entire hash output of something like blake3. We're grabbing a single byte out of the entire multi byte hash. And the rest will go to the next round. The permutations will explode. This is all relying on the guarantees of such functions regarding bit independence. Add a few parametric knobs (such as which bits to lift for the byte from the hash output) and we're in Enigma territory. You would need to know the mechanism and the params and then go trying to bruteforce such a function using one byte out of say n (n>=256) bits of hash for every character that you managed to decipher. I honestly don't see how it is possible unless the hash function is broken in a fundamental way.

> Of course, if BLAKE3 is indistinguishable from a true random number generator, the stream cipher is indistinguishable from a true one-time pad. But no PRG has yet been proven indistinguishable from true randomness (as such would be a proof that P ≠ NP); and our premise is that such a PRG cannot exist and all PRGs are trivially breakable, which is why the distinction between OTP and a stream cipher is significant.

Fully agree, but then how does one make a one time pad outside of using some "random" physical process to drive an algorithm to emit random bits? In other words, is it not true that most one time pads are themselves products of some PRNG?


> We're grabbing a single byte out of the entire multi byte hash [...] I honestly don't see how it is possible unless the hash function is broken in a fundamental way.

Under the premise posed, it's possible. Define f(x) to be some number of first bytes of the blake3 output after iteratively applying it like you describe with initial state x, and f(x) is a function we can invert like almost any other NP problem in Pessiland.

Yes, this is absurd. It's very unlikely that this is actually possible, especially so easily. But nobody's been able to prove that, and that's why P vs NP is such a significant open question.

> how does one make a one time pad outside of using some "random" physical process to drive an algorithm to emit random bits? In other words, is it not true that most one time pads are themselves products of some PRNG?

True randomness involves sampling some noisy physical process. It's not that hard; every x86 CPU includes a TRNG. So we certainly have the capability of creating a truly random one-time pad.

But of course, these are rarely used in practice because we have block ciphers and stream ciphers, which are way more useful as long as the underlying cipher isn't broken (i.e. as long as it cannot be distinguished from randomness). Your idea of using a PRG to seed something that looks like a one-time pad is very sensible, because that's exactly what a stream cipher is and these are very commonly used!

OTPs are mostly an object of academic study, and interesting because of their property that they are provably secure (unlike all cryptography based on NP problems). But this security proof relies on the true randomness (this is why I keep insisting that an "OTP" based on a PRG cannot be called OTP: because it does not have the one interesting property that OTP has).

The only time you'd use a one-time pad in practice is if you were very paranoid about encryption being broken; and in that case, you'd definitely want to use a truly random source, as you'd also need to worry about your PRG being broken.

So in some sense, the question "is it not true that most one time pads are themselves products of some PRNG" is a category error, because we would call that a stream cipher instead of a one time pad. (It doesn't make a difference whether you generate the keystream on the fly or generate it ahead of time and write it down for later). But in another sense, it is true, because stream ciphers are commonly used and one-time pads are not.


Wouldn't they rather store those numbers on the chip on your card?

There would never exist a need for such a ridiculous method.

If public-key cryptography did not exist, Visa and Mastercard would not be able to communicate directly with you, but only with your bank and a big bank would also not communicate directly with you, but only with the local branch were you had opened accounts by going there in person.

When you would open bank accounts by being physically present at a bank agency, you would pair your authenticating device with a bank server, when the pairing devices would exchange pre-shared secret keys, where each customer has a distinct pre-shared key, randomly generated.

Then online banking could be done like today. For a credit or debit card usable in an ATM, each card would have to contain a microcontroller with its own pre-shared secret key, to be able to authenticate itself when inserted in an ATM.

The only serious problem of such a banking system is that the security of the bank servers that store databases with pre-shared secret keys of the customers and of the cards would be critical. If someone would hack such a server and access the content of the database, they could impersonate any customer and transfer their funds.


That's just plain PSK. In case of SCRAM the authenticator stored on the server can't be used to impersonate the client.

SCRAM does only authentication, not session key exchange.

The SCRAM authenticators cannot be used to impersonate a client for the same reason as an /etc/passwd or /etc/shadow file.

Obviously, a database with pre-shared secret keys should stay encrypted on the SSD/HDD, so if the server were hacked, reading the file system would not be enough to obtain useful information, the same as with the hashed SCRAM authenticators.

Nonetheless, if a hacker would obtain a control over the server that is privileged enough, to be able to examine process memory, then the unencrypted secret keys could be accessed (total memory encryption, which is available in many recent CPUs, would make that much more difficult).

A server could be dedicated to do nothing else than handling the establishment of encrypted connections with clients (similarly to the old-style Kerberos servers) and it could be hardened enough to make impossible any tampering with it, but this would be an additional requirement in comparison with what is needed today, when a server must protect only its own private key for digital signatures.


They seem to be messing around with the settings, I've had quality crater twice, but it later "came back"

Until the current supply chain security nightmare of code dependencies ends, yes, being able to pull out python sounds like a great idea. We're abandoning vllm in favor of vllm.cpp and llama.cpp largely because I get to walk away from 9gb of supply chain attack surface area (CUDA) forever, for a couple days of testing.

You can bake oauth into the load balancer these days, no reason to expose the next layer down

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: