Skip to content

PuneetKumar1790/Hackodisha-5.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

55 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ ShieldStream – Secure Video Streaming Platform

ShieldStream is a piracy-proof video streaming backend that protects premium content with enterprise-grade security. Built for hackathons but designed with real-world DRM challenges in mind.

🌍 Why ShieldStream?

Digital piracy costs billions every year.

$75B – Global annual revenue lost to digital piracy (Motion Picture Association)

β‚Ή2,000 Cr – Revenue lost by Indian EdTech in 2024 alone (EY–IAMAI Report)

62% – Courses experience unauthorized sharing within weeks of launch (VdoCipher Research)

ShieldStream tackles this by combining AES-128 encryption, short-lived SAS URLs, JWT authentication, and secure backend proxying.

πŸ” Key Features πŸš€ Production-Ready Backend Security

Secure Upload β†’ Videos uploaded to Azure Blob Storage with automatic HLS segmentation and AES-128 encryption

Rotating JWT Authentication β†’ Short-lived access tokens + one-time refresh tokens (prevents replay attacks)

Time-Limited Access β†’ Dynamic SAS URLs (2 min expiry), HTTPS enforced, prevents link sharing

Proxy Access β†’ Clients never hit Azure directly. All .ts segments and .key files are proxied via backend

Session Validation β†’ Each request validated against MongoDB WatchSession (blocks unauthorized playback)

πŸŽ₯ Streaming Technology

HLS Streaming β†’ Adaptive bitrate for smooth playback

AES-128 Encrypted Segments β†’ Protects against raw file downloads

No Direct Blob Access β†’ Azure Blob URLs are hidden, only backend serves media

Demo Mode β†’ Falls back to sample video if Azure credentials are missing

πŸ› οΈ Tech Stack

Backend β†’ Node.js + Express

Database β†’ MongoDB (User & Session Management)

Storage β†’ Azure Blob Storage

Encryption β†’ AES-128 + short-lived SAS tokens

Streaming β†’ HLS (HTTP Live Streaming)

βš™οΈ How It Works

Upload β†’ Content uploaded to Azure β†’ converted into .m3u8 + .ts segments with AES-128 key

Backend Proxy β†’ All segment & key requests routed through /api/stream/:id/...

Authentication β†’ JWT + MongoDB sessions validate every playback request

Time-Limited Access β†’ SAS URLs expire in 2 minutes, forcing secure revalidation

Playback β†’ Frontend HLS player streams content seamlessly

πŸ“Š Security Highlights

πŸ”‘ AES-128 Encrypted Segments & Keys

πŸ”’ Rotating SAS URLs (2 min expiry)

🚫 No Direct Blob Access (all requests proxied via backend)

🧾 JWT + Session Validation in MongoDB

🌐 HTTPS Enforced for all traffic

πŸ“‚ Backend Status

Authentication β†’ βœ… Active

Encryption β†’ βœ… AES-128

Storage β†’ βœ… Azure Blob

Streaming β†’ βœ… HLS + Proxy

πŸ‘¨β€πŸ’» Hackathon Ready

βœ… Fully working prototype

βœ… Real-world inspired DRM security

βœ… Clear problem statement & global impact

βœ… Scalable architecture

Β© 2025 ShieldStream. All rights reserved.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors