- <?php
- //Requires OpenSSL library activated https://www.php.net/manual/en/book.openssl.php
- $characters_data = file_get_contents("characters.json");
- $signature = file_get_contents("signature.sha512");
- $public_key = file_get_contents("exwow_public.crt"); // as from https://char-export.excalibur.ws/exwow_public.crt
- $verification_result = openssl_verify($characters_data, $signature, $public_key, OPENSSL_ALGO_SHA512);
- if (!$verification_result) {
- echo "Account data has been tampered with";
- }
- else {
- echo "Account data is authentic";
- }
Integration example of ExcaliburWoW's character export tool