steam-machine-id

Crates.iosteam-machine-id
lib.rssteam-machine-id
version0.1.1
sourcesrc
created_at2024-01-26 06:27:03.912594
updated_at2024-02-14 19:41:12.294988
descriptionFor generating Steam machine IDs.
homepagehttps://github.com/juliarose/steam-machine-id
repositoryhttps://github.com/juliarose/steam-machine-id
max_upload_size
id1115261
size15,210
Julia (juliarose)

documentation

README

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

MIT

Commit count: 0

cargo fmt