Skip to content

davidesantangelo/msid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msid

Machine System ID — A revolutionary, lightweight, and secure machine fingerprint generator for Ruby.

msid generates a unique, consistent, and cryptographically secure identity hash for the host machine by gathering immutable hardware signatures (CPU model, MAC addresses, Disk UUIDs, and more). It works seamlessly across macOS, Linux, and Windows.

Ideal for licensing, analytics, fraud prevention, and security enforcement.

Installation

Add this line to your application's Gemfile:

gem 'msid'

And then execute:

$ bundle install

Usage

require 'msid'

# Generate a unique 64-character SHA-256 machine fingerprint
Msid.generate
# => "a1b2c3d4..."

# Generate a salted fingerprint (Recommended for app-specific or user-specific IDs)
Msid.generate(salt: 'my-super-secret-key')
# => "e5f6g7h8..."

# Inspect the raw gathered hardware data (New in v0.2.0)
Msid.info
# => {
#      hostname: "MacBook-Pro.local",
#      cpu_model: "Apple M1",
#      mac_address: "00:1A:2B:3C:4D:5E",
#      disk_uuid: "..."
#    }

CLI Support

You can also use msid directly from the terminal:

$ msid
a1b2c3d4...

Contributing

Bug reports and pull requests are welcome on GitHub.

License

The gem is available as open source under the terms of the MIT License.

About

A Ruby gem that generates a secure, unique fingerprint ID for the current machine by collecting hardware and software identifiers.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages