Giter Club home page Giter Club logo

Comments (2)

auroranockert avatar auroranockert commented on July 21, 2024

Sounds like something that should be doable, but cryptography with JS isn't secure for DRM or against man-in-the-middle attacks.

On 9 Sep 2013, at 14:39, Andrei Stoicescu [email protected] wrote:

I'm still going through the docs and all, but basically I want to deliver a file from a server (say like you would normally do with an mp3) but add some sort of on the fly encryption (something simple for starters, say delivering a base64 string representation of the mp3 file) and play it on the client

Can you guys tell me if this is even remotely possible using this framework?


Reply to this email directly or view it on GitHub.

from aurora.js.

devongovett avatar devongovett commented on July 21, 2024

Yeah, that should be possible. It's not something that we'll add to the core framework, but easily accomplished using a third party library. Basically, you need to put something between the source and the demuxer. You can that by wrapping the source class you want to use (e.g. HTTPSource), receiving data events from the wrapped source and doing your decryption, then finally re-emitting data events. Since your wrapper will basically act as a source, make sure you implement the methods described here and basically call the implementations of the original source from them.

Hope that wasn't too complicated an explanation. The basic gist is that you wrap the source to do some processing before emitting data events. Good luck!

from aurora.js.

Related Issues (20)

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.