View Single Post
  #22  
Old 05-24-2014, 03:07 PM
Dune Dune is offline
Member
 
Join Date: May 2014
Posts: 39
Dune is on a distinguished road
Default

Re: Decrypt AES-128 encrypted video files from a m3u8


Quote:
Originally Posted by gaaara View Post
seems to be the language ruby code was in a file. rb

you speek french Dune ?
Indeed I do, we're quite a bunch of french people being concerned by this

Quote:
Originally Posted by Nopt View Post
The answer indeed lies in the original source page
And since you like python :
Code:
import base64
from Crypto.Cipher import Blowfish
key = "Rev3rseEngIneeringIsN0tLeGal" #~ As if ;)
aes = Blowfish.new(key, Blowfish.MODE_ECB)
d = "e2f96a0861cb381a8b52801f18bf04924c3472bc8f319930"
d = d.decode("hex")
d = aes.decrypt(d)
d = base64.b64decode(d)
return d
Thank you very much for the Python port! I'm gonna try this ASAP.
Reply With Quote