https://github.com/xob0t/gp-file-hide
Disguise any file as media to upload it to Google Photos
https://github.com/xob0t/gp-file-hide
file-storage google-photos
Last synced: 8 months ago
JSON representation
Disguise any file as media to upload it to Google Photos
- Host: GitHub
- URL: https://github.com/xob0t/gp-file-hide
- Owner: xob0t
- Created: 2024-07-06T12:33:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-30T18:44:50.000Z (about 1 year ago)
- Last Synced: 2024-12-24T00:28:39.615Z (10 months ago)
- Topics: file-storage, google-photos
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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.