Skip to content

annndruha/SecurePhotos

Repository files navigation

SecurePhotos

version GitHub license python lint

SecurePhotos - Gallery for photos with encryption for your photos or any files. Also, it's faster than windows default gallery!

Screenshots:

image

Features

  • Encrypt/Decrypt files and folders on disk
  • Encrypted image preview without decrypt on disk
  • Rotate and delete images
  • Infinite photos zoom

Install and usage:

Pre-build exe for Windows:
Manual run from sources:

Install Python and execute in terminal:

git clone https://github.com/annndruha/SecurePhotos
cd SecurePhotos
pip install -r requirements.txt
python -m src

Algorithm:

When you click Encrypt 🔒:

flowchart TD
    PW("Password<br/>Not stored in RAM or anywhere") --> SHA[UTF-8 to SHA-256]
    SHA --> HASH("Password HASH<br/>Stored in RAM (while open)")
    
    DATA("Image/video file on disk<br/>(png | jpg | mp4 | mkv | etc.)") --> BYTES("Bytes")
    BYTES --> PADDING["Padding up to block size 16 bytes"]

    subgraph AES-256 [AES-256 with CBC]
        HASH --> CHIPPER
        PADDING --> CHIPPER("Ciphertext")
    end

    CHIPPER --> NEW_FILE("Encrypted image or folder on disk<br/>with ext (.aes/.aes_zip)")
    NEW_FILE --> DELETE_FILE("Delete old file<br/>or folder")
    
    style PW fill:#e6e6fa
    style SHA fill:#e6e6fa
    style DATA fill:#b3d9ff
    style BYTES fill:#b3d9ff
    style PADDING fill:#b3d9ff
    style HASH fill:#e6e6fa
    style CHIPPER fill:#fffc5e
    style NEW_FILE fill:#ccffcc
    style DELETE_FILE fill:#ffcccc
    
Loading

Contact

Feel free to report bugs and suggest improvements on [email protected]

About

Gallery with encryption (Python desktop application)

Topics

Resources

License

Stars

Watchers

Forks

Languages