Giter VIP home page Giter VIP logo

easy-drm's Introduction

Video Encryption App in Golang

This is a simple application written in Golang that encrypts and serves video files over HTTP. It utilizes AES encryption to securely transmit the video data. The application also includes middleware for handling Cross-Origin Resource Sharing (CORS).

Usage

  1. Ensure you have Go installed on your system.

  2. Clone or download the repository.

  3. Navigate to the directory containing the main.go file.

  4. Run the following command to start the server:

    go run main.go
  5. The server will start on localhost:8080.

Endpoints

/video

  • Method: GET
  • Description: Retrieves and encrypts the video file located at /data/input.mp4.
  • Response: The encrypted video data is served with an application/octet-stream content type.

AES Encryption

  • The AES encryption key used by default is your_secret_aes_key_32_charslong. Please replace it with your own securely generated key for production use.

Middleware

The application includes middleware for handling CORS (Cross-Origin Resource Sharing) to allow requests from different origins.

Note

  • This is a basic implementation and may require additional security measures and optimizations for production use.
  • Ensure proper access controls and authentication mechanisms are implemented before deploying this application in a production environment.

easy-drm's People

Contributors

inxo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.