Category Archives: Code

Demo example based on Cipher API

Cipher API provides the algorithm dictionary which can be used for decrypting cipher codes.

Below is the demo example for the same which is also released in Github at https://github.com/bitnol/CipherAPI

You can also fork it from Github. Please do leave feedback if any.

How to use Cipher API to decrypt signatures

Before proceeding please check the home page of Cipher API: http://api.gitnol.com

We can retrieve the signature decrypting algorithm using two method:

  1. By passing just player ID i.e.  http://api.gitnol.com/getAlgo.php?playerID=en_US-vflz7mN60
  2. By passing player ID and signature format i.e. http://api.gitnol.com/getAlgo.php?playerID=en_US-vflz7mN60&sigformat=42.40

Developers can use any of them depending upon their requirement. But I recommend to use first method because first method includes the decrypting algorithm of most expected signature format.

The decrypting algorithm is in Python syntax. So developers working with PHP can use the following function to decrypt the signature using the algorithm obtained from first method:

Use above function to with proper params i.e. decrypt($signature, $algorithm) and it will return the decrypted signature.

Hopefully I have considered each case of Python syntax. If anybody found any missing case then please contribute it.

More articles will follow soon on this section.