Re:Show HN: NoFile.io – A simple file storage site with lots...
by NoFile on Tuesday March 07, 2017 @09:13AM
(#13810416)
Unfortunately it's required for the file deduplication.
Although it slightly degrades the security it's not serious enough to impose any security risks as the attacker would already have to know the hash of the file which almost always requires them to know the contents of the files.
Random strings and numbers are also securely generated through a CSRPNG with window.crypto.getRandomValues().
That is incorrect. Knowing the hash does not mean you know the contents of the file. You should generate encryption keys randomly, preferably using a secure random method such as that shipped with SJCL, rather than JavaScript's random API.