Re:Slack was hacked
by mateuszf on Friday March 27, 2015 @12:57PM
(#9277487)
That would make implementing search quite hard so I'd say - it's pretty likely they don't encrypt it.
[ Parent
| on HN ]
If anyone from Slack is reading this, the encryption should be an option, even if it means disabling or substantially slowing the search feature.
Re:Slack was hacked
by NeutronBoy on Friday March 27, 2015 @06:59PM
(#9279608)
If they encrypted it, Slack would have to hold the key, so that all users in an org can then read existing messages.
No, it could be a private key shared among users.
That's not right. There is no need to store text body in order to index it. Furthermore, you can implement an index of token hashes, rather than an index of tokens.
Re:Slack was hacked
by polyfractal on Friday March 27, 2015 @08:52PM
(#9280007)
It would remove a lot of nice search features, however. If you just index tokens without positional information, you have a much harder time performing phrase matching. If you include positional information, you can probably crack the encryption because some tokens are statistically more likely to appear next to each other than others.
If you index shingles (phrase chunks) instead, you lose out on sloppy phrases...you can only match exact phrases. I imagine you can perform a similar statistical attack too.
Hell, just getting the term dictionary would probably allow you to reverse engineer the tokens, since written language follows a very predictable power law.
Hashing also removes the ability to highlight search results, which significantly degrades search functionality for an end user.
Basically, yes, you can do search with encrypted tokens...but it will be a very poor search experience.
If they dont encrypt storage they are highly negligent. Index and search are done in RAM,which is slightly harder to steal than disk data.