2 releases
0.1.1 | Feb 14, 2024 |
---|---|
0.1.0 | Jan 26, 2024 |
#19 in #valve
14KB
232 lines
steam-machine-id
Used for generating Steam machine IDs. Based on node-steam-user.
Usage
Generating random machine IDs.
use steam_machine_id::MachineID;
// Creates a random machine ID.
let machine_id = MachineID::random();
Consuming a generated machine ID for a login request.
use steam_machine_id::MachineID;
struct LoginRequest {
machine_id: Vec<u8>,
}
// Creates a machine ID from the given account name.
let machine_id = MachineID::from_account_name("accountname");
let login = LoginRequest {
// Converts the machine ID into a binary message object.
machine_id: machine_id.into(),
};
License
lib.rs
:
Used for generating Steam machine IDs. Machine IDs are most commonly supplied to Steam when logging in.
Usage
Generating random machine IDs.
use steam_machine_id::MachineID;
// Creates a random machine ID.
let machine_id = MachineID::random();
Consuming a generated machine ID for a login request.
use steam_machine_id::MachineID;
struct LoginRequest {
machine_id: Vec<u8>,
}
// Creates a machine ID from the given account name.
let machine_id = MachineID::from_account_name("accountname");
let login = LoginRequest {
// Converts the machine ID into a binary message object.
machine_id: machine_id.into(),
};
Dependencies
~515KB