1. <?php
  2. //Requires OpenSSL library activated https://www.php.net/manual/en/book.openssl.php
  3. $characters_data = file_get_contents("characters.json");
  4. $signature = file_get_contents("signature.sha512");
  5. $public_key = file_get_contents("exwow_public.crt"); // as from https://char-export.excalibur.ws/exwow_public.crt
  6. $verification_result = openssl_verify($characters_data, $signature, $public_key, OPENSSL_ALGO_SHA512);
  7. if (!$verification_result) {
  8. echo "Account data has been tampered with";
  9. }
  10. else {
  11. echo "Account data is authentic";
  12. }

Integration example of ExcaliburWoW's character export tool

Comments powered by Disqus