keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.88k stars 1.23k forks source link

Verify file intergrity #24187

Open ntqr opened 4 years ago

ntqr commented 4 years ago

Would be nice if there's a way to generate hashes for files in KBFS without having to download the entire thing.

junderw commented 4 years ago

If filesystems included hashing algorithms in their system calls it could be possible.

KBFS is basically a translation layer for file system IO calls that does encryption/decryption and syncing with the server of encrypted data on the backend.

So until KBFS downloads all the data, and decrypts it... there is nothing to hash.

Also, KBFS can not intercept your hash command, since your hash command is not a filesystem command, your hash command just uses filesystem calls to read data, which KBFS will take as a trigger to download the data.

You are asking them to "create a way to hash data without having the data"... which is impossible.

ntqr commented 4 years ago

I guess I worded it incorrectly, but it's more like I'm asking for a way for the server to generate and store the hashes for me. But then again that means the file has to be decrypted on their server which defeats the purpose of this program. I guess it's not possible after all.