rails function to check license against remote server
$10-30 USD
Dokončeno
Zveřejněno přibližně před 10 roky
$10-30 USD
Zaplaceno při doručení
I need few lines of code that will check a license using a 3 step authentication process.
We have three licensing information:
1. licenseID
2. licenseKey
3. licenseSerial
First step -- submit licenseID to remote to http://licensingserver/license/check/$licenseID
Remote will answer with these values
a) if licenseID is correct, it will answer: {"status":"success","message":"","howdy":'WHATEVERSTRING' }
b) if licenseID is incorrect, it will answer: {"status":"error" }
Second step - $licenseKey2 = crypt(licenseKey,$howdy ) , submit to remote http://licensingserver/license/check2/$licenseKey2/$licenseID
Remote will answer with these values :
a) if licenseKey2 had the right value , success will return {"status":"success","message":"","howdy":"WHATEVERSTRING","licenseSalt":"WHATEVERSTRING" }
b) if licenseKey2 had the wrong value,it will return:
{"status":"error"}
Third step: if on previous step we had status success, do this third check
if ($crypt_salt != crypt(licenseKey,licenseSalt) { die () } else { ....success.... }
I would need this done in Ruby on Rails.
Hi,
I'm a 5 years experienced ruby on rails developer. This could be done very quickly, please have a look on my profile and feel free to drop me a line.
Regards .