Is it possible to have one test per device?

Is it possible to provide a service that provides one free trial for each device, without the possibility of an individual to receive several free samples on one device. If this is not possible, did you know that it makes it difficult to get a few free samples.

+5
source share
5 answers

You can create a license key based on the unique identifier of the device, the date of the request and your own private key to create a license valid only for a certain date.

Your application will verify that the license key is valid by decrypting the license key with your public key and comparing its expiration date and device identifier. People cannot fake a fake request, since the license key is valid only for the set date and given device identifier.

(hint: read about public key cryptography)

, . , , "getDeviceId()". , , , . .

, / , , . .

, , java/android , . - .

+11

, 99% - : - , , . , , - - , , .

, , - , - , .

: , -, . , , .

+4

, , . iphone UDID,

UIDevice *device = [UIDevice currentDevice];
NSString *uniqueIdentifier = [device uniqueIdentifier];

uniqueIdentifier , , .

android, getDeviceID() . .

+3

- , . , , . , oAuth. ( , ). Android . oAuth, , .

+1

MAC- Wi-Fi? , , MAC .

, , , MAC- ? , MAC- . , .

, / .

iPhone, , iPhone Wi-Fi, wifi MAC-. , MAC . , , .

+1
source

All Articles