How starsgiri/crypto-ency-decry works
CipherCore is a Streamlit application for encrypting and decrypting text and images with ten cipher configurations. Users choose a text or image workflow; encryption derives a key from the passphrase, encrypts the content, and returns a compact token. Decryption reads the token’s algorithm identifier and recovers the content. The image workflow additionally compresses uploads and restores decrypted images. The app is a single-file implementation: the README documents major behavior, while the excerpts show only selected internals, so edges for unsampled UI and image steps rely on that documentation.
Main entry points: app.py Raw encryption
Components 14
User interface
- Streamlit interface
app.py - Text workflow
app.py - Image controls
app.py - Passphrase feedback
app.py
Cryptography and tokens
- Key derivation
app.py - Cipher suite
app.py - Raw encryption
app.py - Text token codec
app.py - Token algorithm detection
app.py
Image workflow
- Image upload and preview
app.py - Image compression
app.py - Image token codec
app.py - Image restoration
app.py
Other components
- User
Connections 15
- User → Streamlit interface: uses
README.md - Streamlit interface → Text workflow: selects mode
README.md - Streamlit interface → Image controls: selects mode
README.md - Text workflow → Passphrase feedback: shows feedback
README.md - Text workflow → Raw encryption: encrypts or decrypts
README.md - Raw encryption → Key derivation: derives key
app.py - Raw encryption → Cipher suite: uses cipher
app.py - Raw encryption → Text token codec: packs or unpacks
app.py - Text workflow → Token algorithm detection: detects algorithm
README.md - Token algorithm detection → Raw encryption: selects decryption
README.md - Image controls → Image upload and preview: accepts image
README.md - Image upload and preview → Image compression: compresses image
README.md - Image compression → Raw encryption: encrypts payload
README.md - Image controls → Image token codec: handles image token
README.md - Image token codec → Image restoration: restores image
app.py