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

no its in the wrong court


this post was written in the year 2009

After reading this, it sounds like a great idea to store files using the SHA-1 for the directory.

I have no idea what this means however, all I know is that SHA-1 and MD5 are hashing algorithms. If I calculate the SHA-1 hash using this ruby script, and I change the file's content (which changes the hash), how do I know where the file is stored then?

My question is then, what are the basics of implementing a SHA-1/file-storage system?

If all of the files are changing content all the time, is there a better solution for storing them, or do you just have to keep updating the hash?

I'm just thinking about how to create a generic file storing system like GoogleDocs, Flickr, Youtube, DropBox, etc., something that you could reuse in different environments (such as storing PubMed journal articles or Cramster homework assignments and tests, or just images like on Flickr). I'd probably store them on Amazon EC2. Just some system so I can say "this is how I'll 99% of the time do file storing from now on", so I can stop thinking about building a solid/consistent way to store files and get onto some real problems.


how do u report a digital wallet theft? are their cyber cops in cyber space


You can report cyber crimes to cops in your country


common core math


neither is he


Compelling evidence is making the price go up so keep talking about satoshi or take my advice and buy whatever is in the red and cheep right now because if this digital money stuff is legit than we are all wealthy


I just want to know his ip address “Hint”


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

Search: