Archiving 3 - eitan-j/tech-journal GitHub Wiki

To upload

  • create dummyfile.bmp
  • zip datafile if needed
  • find length
    • right click, Properties
  • find hash
    • open command prompt
    • CertUtil -hashfile <file> MD5 # TODO: use md5sum
  • write in Meta.txt
    • format Name,Bytes,MD5;
  • Use UNIX
    • cat dummyfile.bmp datafile >> uploadfile.bmp
  • Upload uploadfile.bmp

To download

  • download uploadfile.bmp
  • Use UNIX
    • Bytes comes from meta.txt
    • split -b Bytes uploadfile.bmp temp
    • cat tempab tempac temp ad etc. >> datafile # TODO: better
  • compare hash
    • open command prompt
    • CertUtil -hashfile <file> MD5
    • hash should be the same as in Meta.txt
  • unzip if needed
⚠️ **GitHub.com Fallback** ⚠️