Better HN
topnewbestaskshowjobs
Log inSign up

karulont

413 karma · joined Feb 2, 2017 (9y ago) · 45 submissions

Submissions

1.

Just When You Thought It Was OK to Skip Breakfast(wsj.com ↗)

1 points · by karulont · 1y ago · 1 comment

comment 1y ago · link · parent

Swift has been adding support for things like non-copyable types that should help with writing performance sensitive parts.

comment 2y ago · link · parent

Can someone explain why? Past 3 years have not seen a huge peak like that.

Edit: it is now free

comment 2y ago · link · parent

https://github.com/apple/swift-homomorphic-encryption/blob/3...

Run SHA256 on the keyword, truncate the hash and take the modulus with number of shards.

comment 2y ago · link · parent

Check my comment here for some intuition: https://news.ycombinator.com/item?id=41115179

Basically the server does not know, it just computes with every possible value. And the result turns out to be what the client was interested in.

comment 2y ago · link · parent

There was a recent paper that also uses Swift in the name:

“Cheddar: A Swift Fully Homomorphic Encryption Library for CUDA GPUs” - https://arxiv.org/pdf/2407.13055

We were a little worried, but quickly discovered that they used Swift as an adjective not as a programming language.

[Disclosure: I work on the team responsible for the feature]

comment 2y ago · link · parent

In this PIR model the server has to read the whole database, otherwise it would be easy on the server to see, that these rows were not accessed and therefore they are not the one the client queried.

In this PIR model the server runtime is O(n) where n is the number of rows.

To keep it practical, we do support sharding the database. Client leaks a few bits of hashed query to pick the right shard, where we process the entire shard. There is a inherent privacy-performance tradeoff: less shards = less leakage vs more shards = better performance & less privacy.

comment 2y ago · link · parent

A very simple PIR scheme on top of homomorphic encryption that supports multiplying with a plaintext and homomorphic addition, would look like this:

The client one-hot-encodes the query: Enc(0), Enc(1), Enc(0). The server has 3 values: x, y, z. Now the server computes: Enc(0) * x + Enc(1) * y + Enc(0) * z == Enc(y). Client can decrypt Enc(y) and get the value y. Server received three ciphertexts, but does not know which one of them was encryption of zero or one, because the multiplications and additions that the server did, never leak the underlying value.

This gives some intuition on how PIR works, actual schemes are more efficient.

[Disclosure: I work on the team responsible for the feature]

comment 2y ago · link · parent

> That's a strange use of 'use'? Clearly, talking to some software over the network is 'using' it?

The point is that the proprietary client software was not used.

comment 2y ago · link · parent

How is this different from CrossOver?

comment 3y ago · link · parent

> hardware-accelerated PIR which is currently at use at scale.

Can you tell us more about that?

comment 3y ago · link · parent

> The Sensitive Content Analysis framework enables third-party developers to integrate Communication Safety in their apps. The framework allows developers to detect if content that children receive or attempt to send in their apps may contain nudity, and developers can add protections in their apps when sensitive content is detected.

https://www.apple.com/child-safety/

13.

Learning Iconic Scenes with Differential Privacy(machinelearning.apple.com ↗)

1 points · by karulont · 3y ago · discuss

comment 3y ago · link · parent

The reloading part reminded me about https://www.jrebel.com/

comment 3y ago · link · parent

I had phone that could run J2ME but did not have Internet.

I reverse engineered a flash application that showed a map and provided address search. I scraped the map tiles and address to location database. Reimplemented the viewer application as a Java applet and preloaded the tiles and address database to a microSD card connected to the phone. So essentially I built my own offline maps for my not internet connected phone.

Address search required prefix tree because IO was too slow to use binary search on the phone.

Anyway this was done just before I went to a new city to attend university and it was really helpful to find out where I am and where to go. There was no navigation, but it showed the map, gps location and the location where I needed to get to.

So that was my personal project that really had great utility for me.

comment 3y ago · link · parent

I thought that this is a way to downsize: instead of supporting two orgs, merge them and the costs hopefully go down?

comment 3y ago · link · parent

Another existing offer: https://www.terex.com/zenrobotics

At one point they were handing out T-shirts saying 9 out of 10 PHDs

comment 3y ago · link · parent

So people want to be progressive and use cryptocurrency that is not tied to a government.

But when things go wrong they run to the FBI and FTC both run by the government.

comment 3y ago · link · parent

Perceptual hashes are quite reversible. It is not a cryptographic hash that is hard to reverse.

20.

The smallest 256x256 single-color PNG file, and where you've seen it (2015)(mjt.me.uk ↗)

482 points · by karulont · 4y ago · 101 comments

comment 4y ago · link · parent

The encryption is data dependent. The homomorphic computation itself cannot be data dependent. Homomorphic encryption says that even if you see all the intermediate encrypted values, you will not know what the encrypted input or output value is. So side-channels do not matter for the computationally heavy evaluation part. In this paper they attacked the encryption part.

comment 5y ago · link · parent

“Alfred Vaino Aho” this a the first time I looked it up in full (with the middle name) it seems like a Finnish or maybe Estonian name. I am wondering if he has Finnish or Estonian heritage.

comment 5y ago · link · parent

https://gfodor.medium.com/introducing-jel-the-un-zoom-320d3d...

Might be a better place to start reading about it.

comment 5y ago · link · parent

> Heck, if you ask some people, Rust is less secure than a GC’ed language for web apps if you use any crates that have unsafe code - which includes Actix, the most popular web framework, because unsafe code allows things like deferencing raw pointers.

The presence of _unsafe_ is okay, it just means that this is a part of code, that the compiler cannot verify itself. Usually the unsafe part (verified by human) is wrapped in a API that is safe to use.

PS: You can still have memory leaks in GC-d languages by reference cycles.

comment 5y ago · link · parent

Technical debt was accumulated and writing the test did not actually help with removing it.

comment 5y ago · link · parent

> In this Part 2 of our two-part Apple privacy series, we share a breakdown of iOS14’s privacy features. iOS14 addresses various privacy pain points, including but not limited to notice, consent, and data minimization. We’ve summarized some of them below for startups to take inspiration from in designing their own apps and other products.

Part 2 is at: https://medium.com/privacy-technology/ios14s-privacy-labels-...

27.

What Startups Can Learn from Apple’s Privacy Position(medium.com ↗)

1 points · by karulont · 5y ago · 1 comment

comment 6y ago · link · parent

I do not believe this is going to work at all. Analyzing encrypted data should not reveal anything actionable. Even when analyzing unencrypted data from clients. I do not see a way to actually catch wall hackers. The reason why one cannot catch wall hackers is because there is no inherent difference in (encrypted) communications between a wall hacker and a highly skilled individual.

comment 6y ago · link · parent

If I am thinking about the same MMO, then every client update changed everything. I am sure they used some custom obfuscations tools to even alter the client / server protocol.

The way how bots were done, was that you had to write tools that try to fingerprint interesting variables by their usage patterns in the bytecode. This was by no means an easy task. But with the frequent client updates manual reverse engineering only helped to understand the codebase, but to actually keep up with the client updates you needed to automate that work.

12