材料
github.com/jleclanche/python-bna/issues/41
account.battle.net/login/en/?ref=localhost
获取 BEARER_TOKEN 命令
curl -X POST "https://oauth.battle.net/oauth/sso" -H "content-type: application/x-www-form-urlencoded; charset=utf-8" -d "client_id=baedda12fe054e4abdfc3ad7bdea970a&grant_type=client_sso&scope=auth.authenticator&token=<SSO_TOKEN>
绑定新的安全令命令
curl -X POST "https://authenticator-rest-api.bnet-identity.blizzard.net/v1/authenticator" -H "accept: application/json" -H "Authorization: Bearer <BEARER_TOKEN>" -d ""
十六进制对照表:
| 十六进制 | 十进制 | 二进制 |
|---|---|---|
| 0 | 0 | 0000 |
| 1 | 1 | 0001 |
| 2 | 2 | 0010 |
| 3 | 3 | 0011 |
| 4 | 4 | 0100 |
| 5 | 5 | 0101 |
| 6 | 6 | 0110 |
| 7 | 7 | 0111 |
| 8 | 8 | 1000 |
| 9 | 9 | 1001 |
| a | 10 | 1010 |
| b | 11 | 1011 |
| c | 12 | 1100 |
| d | 13 | 1101 |
| e | 14 | 1110 |
| f | 15 | 1111 |
Base32 编码对照表:
| 二进制 | 十进制 | Base32 字符 |
|---|---|---|
| 00000 | 0 | A |
| 00001 | 1 | B |
| 00010 | 2 | C |
| 00011 | 3 | D |
| 00100 | 4 | E |
| 00101 | 5 | F |
| 00110 | 6 | G |
| 00111 | 7 | H |
| 01000 | 8 | I |
| 01001 | 9 | J |
| 01010 | 10 | K |
| 01011 | 11 | L |
| 01100 | 12 | M |
| 01101 | 13 | N |
| 01110 | 14 | O |
| 01111 | 15 | P |
| 10000 | 16 | Q |
| 10001 | 17 | R |
| 10010 | 18 | S |
| 10011 | 19 | T |
| 10100 | 20 | U |
| 10101 | 21 | V |
| 10110 | 22 | W |
| 10111 | 23 | X |
| 11000 | 24 | Y |
| 11001 | 25 | Z |
| 11010 | 26 | 2 |
| 11011 | 27 | 3 |
| 11100 | 28 | 4 |
| 11101 | 29 | 5 |
| 11110 | 30 | 6 |
| 11111 | 31 | 7 |

浙公网安备 33010602011771号