Expand description
Steam friend code utilities.
This crate provides two types of Steam friend codes:
- CSGO friend code (
CsgoFriendCode) — Base32/MD5 encoded codes used in CS:GO/CS2 in-game friend system (e.g.ABCDE-FGHJK-LMNPQ). - Short Steam friend code (
create_short_steam_friend_code) — hex-mapped codes used in Steam quick invite links (https://s.team/p/{code}/{token}).
Structs§
Constants§
- SHORT_
STEAM_ FRIEND_ CODE_ CHARS - Character set for short friend code encoding. Maps hex digits 0–15 to consonant-like characters.
Functions§
- create_
short_ steam_ friend_ code - Create a short friend code from an account ID.
- parse_
quick_ invite_ link - Parse a quick invite link URL into (friend_code, token).
- parse_
short_ steam_ friend_ code - Parse a short friend code back into an account ID.