How cranish07/research-project works
This Go application provides a web interface and REST API for priority-aware secret sharing. The principal flow accepts a text or file secret, encrypts it and adds a SHA-256 integrity check, generates BNB shares subject to threshold and mandatory-share constraints, and hides shares in PNG images for download. Reconstruction extracts uploaded shares, applies the access constraints, and recovers the encrypted message. The graph separates API orchestration, cryptography, sharing, steganography, and the browser UI. Source excerpts show only parts of the handlers and steganography functions, so uncertain links are omitted.
Main entry points: main.go HTTP server and handlers · index.html Browser UI
Components 16
Web API
- HTTP server and handlers
main.go - Generated share files
main.go - Uploaded files
main.go - Share download
main.go
Cryptography
- Crypto layer
main.go - ChaCha20-Poly1305
main.go - Logistic chaos cipher
main.go - SHA-256 integrity
main.go
BNB sharing
- BNB share generation
main.go - BNB reconstruction
main.go - Bit conversion
main.go
Image steganography
- Share image embedding
main.go - Share image extraction
main.go - Carrier PNG
main.go
Web interface
- Browser UI
static/index.html
Other components
- User
Connections 17
- User → Browser UI: uses
README.md - Browser UI → HTTP server and handlers: sends requests
- HTTP server and handlers → Crypto layer: builds or recovers
main.go - Crypto layer → ChaCha20-Poly1305: encrypts or decrypts
main.go - Crypto layer → Logistic chaos cipher: selects cipher
main.go - Crypto layer → SHA-256 integrity: hashes and checks
main.go - HTTP server and handlers → BNB share generation: generates shares
main.go - BNB share generation → Bit conversion: uses
main.go - HTTP server and handlers → Share image embedding: embeds shares
main.go - Share image embedding → Carrier PNG: reads image
main.go - Share image embedding → Generated share files: writes images
main.go - HTTP server and handlers → Uploaded files: saves uploads
main.go - HTTP server and handlers → Share image extraction: extracts shares
main.go - Share image extraction → BNB reconstruction: provides shares
main.go - HTTP server and handlers → Crypto layer: recovers message
main.go - HTTP server and handlers → Share download: serves files
main.go - Share download → Generated share files: reads images
main.go