Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 892 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 892 Bytes

Why?

Google Photos allows only media uploads. You'd find this useful if you want to:

  • Store not supported files
  • Hide your media from Google, this way you can even store it encrypted

hide_as_media.py

This script generates a media (with random color!), then appends your file's bytes to it.
The original file's filename is also saved within, so you can rename the output if you need to.
The output file structure is:

  1. Media
  2. Separator string
  3. Filename length
  4. Filename
  5. Target file

Important!

If you upload such file in "Storage saver" quality, any info that was appended to it by this script will be stripped and lost! Same will happen if you convert it later by changing the global storage quiality.

undo.py

Restores the file as it was before running hide_as_media.py.
Done by searching for the separator, and exctracting info if it was found.