Skip to content

samleong123/vercel-php-clearkey-hex-base64-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert Key ID & Key in Hex to Base64 for ClearKeys DRM in JSON form

Notice

Heroku version has deprecated because Heroku decided to cancel their free plan. Hence , a Vercel version of this project was created and thanks to Vercel Community which has successfully runned PHP on Vercel.

Disclaimer

By utilizing this service, you may potentially be in violation of the terms of service of your streaming platform. I bear no responsibility for any issues, losses, or inconveniences that may arise due to such violations or discrepancies. You should assume full responsibility and bear the consequences of using this service. This service solely provides a format conversion for Clearkey Key ID and Key into JSON form. It does not include the conversion of key encryption keys for DRM protection nor does it bypass technological security measures (DRM). All Clearkey Key IDs and Keys are in plain text, and I have no means to verify the manner in which you have obtained these Clearkey Key IDs and Keys. All Clearkey Key IDs and Keys are provided in plain text and are inherently capable of decrypting CENC encrypted streams. This website merely converts these IDs and keys into a JSON format to address compatibility issues. Please refer to here for received take down notice.

Before you use this

  1. This tool is written in PHP
  2. You can run it locally by copying all files in to your web server's root directory.
    Ensure PHP is installed and configured properly with your web server before deploying them on your web server.
  3. You can deploy this tool to Vercel.
    Refer to the steps below for deploying this tool to Vercel.
  4. You can also visit https://vercel-php-clearkey-hex-base64-json.vercel.app/ directly if you wanted to use this tool on the spot.
    Deployed by me on Vercel.
  5. I shall not be liable for any problem that will produce losses or inconveniences incurred as a result of such changes or differences.
  6. Please star this repo if you feel that this repo is helping you. Thanks!
  7. Multiple Key & Key ID support is now here!

How to deploy to Vercel?

Deploy to Vercel

Reminder : You are likely to get failed attempt for the 1st time when deploying it , do not panic and follow steps below :

  1. Go to the project settings on Vercel
  2. Scroll down to the Root Directory
  3. Untick Include source files outside of the Root Directory in the Build Step.
  4. Save
  5. Edit anything in the readme.md and save it to trigger Vercel redeploy again.

How to use?

Visit deployed website : https://vercel-php-clearkey-hex-base64-json.vercel.app/

  1. Key in the Keys and Key ID in HEX without space and click generate image
  2. Click "Generate Now" and copy the URL after you saw some JSON output containing : { "keys":[ { "kty":"oct", "k":"", "kid":"" } ], "type":"temporary" }
  3. The URL you copied is your Clearkey License URL. You can use it on your IPTV Player that supports Clearkey.

Issue?

Create an issue if you encountered a problem that was never stated in this README.md

About

Convert Key ID & Key in Hex to Base64 for ClearKeys DRM in JSON form with deployment on Vercel

Topics

Resources

Stars

Watchers

Forks