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
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:
- Media
- Separator string
- Filename length
- Filename
- Target file
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.
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.