Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

Did you win the lottery?


Hongye Rudi Zhang
 Share

Recommended Posts

Hongye Rudi Zhang
Posted
Posted

image.png.97fefedc04226762f26001a497b7ae4e.png

Your hash value can be generated using the following details:
1. Personal information serialization: join your CID and VATSIM-registered email address with a comma (,) e.g. 1234567,[email protected]
2. Hash algorithm used: HMAC+SHA256
3. Key for HMAC: WFSS_VATPRC_2021_04_17_1200_1600_Yo9Qd

If you wish to generate the hash value by yourself, you may use the Python 3 code below, with your correct serialized information.

Quote

 

import hmac
import hashlib

message = '1234567,[email protected]'
SALT = 'WFSS_VATPRC_2021_04_17_1200_1600_Yo9Qd'

hash_value = hmac.new(bytes(SALT, 'utf-8'), msg=bytes(message, 'utf-8'), digestmod=hashlib.sha256).hexdigest().lower()

print(hash_value)

 

Or you may use the JavaScript code below, with your correct serialized information.

Quote

 

const message = '1234567,[email protected]';
const SALT = 'WFSS_VATPRC_2021_04_17_1200_1600_Yo9Qd';

const hashValue = require('crypto')
  .createHmac('sha256', SALT)
  .update(message)
  .digest('hex');

console.log(hashValue);

 

The obtained hash_value/hashValue is your hash value.

(UNENCOURAGED) Or you can use any of the following third-party websites or other websites that support the calculation of HMAC+SHA256 to verify your and hash value with your personal information.
Note: For the sake of personal privacy protection, we strongly recommend that you use the code above to verify by yourself instead of using any third party website.

If you win, congratulations!

Link to comment
Share on other sites

 Share