PHP code example of proget-hq / apple-activation-lock
1. Go to this page and download the library: Download proget-hq/apple-activation-lock library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
proget-hq / apple-activation-lock example snippets
use \Proget\Apple\ActivationLock\ActivationLockHashGenerator;
use \Proget\Apple\ActivationLock\ActivationLockKeyGenerator;
use \Proget\Apple\ActivationLock\ActivationLockRandomBytesGenerator;
$bytes = (new ActivationLockRandomBytesGenerator())->generate();
$hash = (new ActivationLockHashGenerator())->generate($bytes);
$key = (new ActivationLockKeyGenerator())->generate($bytes);