Giter Club home page Giter Club logo

packix-drm-middleman's Introduction

Packix DRM Middleman

Middleman is an in-between server for Packix's DRM API.

Use this in order to keep your Developer Access Key a secret. Please use HTTPS if you are going to use it on your own server.

Usage

If you're using DRMUtils, you can call import it into your tweaks.

#include ./DRMUtils.h

Make sure you've set up the macros in DRMUtils.m beforehand.

#define API_URL @"https://gmoran.me/api/YOUR_KEY.php"
#define PACKAGE_ID @"com.your.package"

Calling it is even easier.

DRMUtils* drm = [[DRMUtils alloc] init];
int returnCode = [drm packageWasPurchased]; 

// Do whatever you will with the return code
if (returnCode == 0) {
  // Purchased!
}
else if (returnCode == 1) {
  // Pirated :(
}

else {
  // An error with the API Occured
}

// if you're not using arc, don't forget to manage your memory
[drm release];

PHP Server

Make sure you have php-curl installed on your server. It will not work otherwise.

If you are a tweak developer and would like to use this without hosting it yourself, please feel free to contact me on twitter: @fr0st or via email at [email protected]

Recommendation

If you are going to implement a DRM into your tweak, please be mindful of how it affects your regular users.

**Do Not have your tweak ping the DRM server everytime SpringBoard loads, or every time the user resprings, or everytime the device is unlocked. Do not do this every 10 minutes. If the server goes down, it negatively affects your users. And that's 100% guaranteed to get you on the front-page of the r/jailbreak subreddit. **

And remember, chances are that your DRM WILL BE CRACKED

As @0ptimo once stated:

"There is no ready-made drop-in support for DRM, however, you may engineer your own solutions. If you have your own webserver and can manage writing routines for license checking, you can follow Cydia's API for checking the status of a device-identifier for purchase proof of your product. Understand clearly: if you wish to implement DRM you need to research and write your own solution, only checking through web-accessible API, the status of the license, from Cydia server. But, it must first go through your own server, so the Cydia Store endpoint server is protected from attackers. Each project and developer will have a different experience in these regards. If you want to beat crackers, you'll have to be as good as they are, unfortunately. We think that time might be better spent improving your product, because DRM that becomes cracked is an effort truly wasted"

packix-drm-middleman's People

Contributors

guillermo-moran 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.