Skip to content

Commit

Permalink
fix: wrong api for team hash
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Oct 27, 2024
1 parent 77f2618 commit 6013dac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/en/guide/features/dynamic-flag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ chal_salt = str_sha256(f"{game_salt}::{chal_id}")
team_hash = str_sha256(f"{chal_salt}::{team_token}")[12:24]
```

The game hash salt `game_salt` can be obtained by accessing the `/api/edit/games/{id}/hashsalt` endpoint with administrator privileges. If you need to use it, please ensure its confidentiality.
The game hash salt `game_salt` can be obtained by accessing the `/api/edit/games/{id}/teamhashsalt` endpoint with administrator privileges. If you need to use it, please ensure its confidentiality.

### Security

Expand Down
2 changes: 1 addition & 1 deletion docs/ja/guide/features/dynamic-flag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ chal_salt = str_sha256(f"{game_salt}::{chal_id}")
team_hash = str_sha256(f"{chal_salt}::{team_token}")[12:24]
```

ここで、ゲームハッシュのソルト`game_salt`は、管理者権限で`/api/edit/games/{id}/hashsalt`エンドポイントにアクセスすることで取得できます。使用する場合は、その機密性を確保してください。
ここで、ゲームハッシュのソルト`game_salt`は、管理者権限で`/api/edit/games/{id}/teamhashsalt`エンドポイントにアクセスすることで取得できます。使用する場合は、その機密性を確保してください。

### セキュリティ

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/guide/features/dynamic-flag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ chal_salt = str_sha256(f"{game_salt}::{chal_id}")
team_hash = str_sha256(f"{chal_salt}::{team_token}")[12:24]
```

其中,比赛哈希盐 `game_salt` 可以通过管理员权限访问 `/api/edit/games/{id}/hashsalt` 接口获取,如需使用请注意保密。
其中,比赛哈希盐 `game_salt` 可以通过管理员权限访问 `/api/edit/games/{id}/teamhashsalt` 接口获取,如需使用请注意保密。

### 安全性

Expand Down

0 comments on commit 6013dac

Please sign in to comment.