diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000000000000000000000000000000000000..845eb5ee7ebe18931776558dd58d1059c749c752 --- /dev/null +++ b/README.en.md @@ -0,0 +1,42 @@ +# Machine Code Helper + +This is a lightweight tool project for generating machine codes, suitable for scenarios that require generating a unique machine code based on hardware information. + +## Project Introduction + +This project provides a static class `MachineCodeHelper` for obtaining the unique identification code of the current machine. This tool can be used in scenarios such as software licensing and device binding. + +## Main Functionality + +- **Obtain Machine Code**: Generates a unique machine code string based on the hardware information of the current device. + +## Usage + +1. Compile this project into a DLL or directly reference the source code. +2. Call the static method `MachineCodeHelper.GetMachineCode()` to obtain the machine code. + +```csharp +using MachineCodeHelper; + +string machineCode = MachineCodeHelper.GetMachineCode(); +Console.WriteLine("Machine Code: " + machineCode); +``` + +## Project Structure + +- `Class1.cs`: Core code file, containing the `MachineCodeHelper` class and the logic for generating machine codes. +- `MachineCodeHelper.csproj`: C# project file. +- `MachineCodeHelper.sln`: Visual Studio solution file. + +## Notes + +- This project currently relies on Windows system methods for retrieving hardware information and may not be suitable for cross-platform environments. +- To enhance security, it is recommended to process the generated machine code with encryption algorithms. + +## Contributions and Feedback + +Feel free to submit Issues and Pull Requests to improve this project. Please follow the project's coding standards and provide clear commit descriptions. + +## License + +This project is licensed under the MIT License. See the LICENSE file for details. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f9991254e9981f919c21cfcb2a4c4d80d76f52c0 --- /dev/null +++ b/README.md @@ -0,0 +1,42 @@ +# 机器码助手(MachineCodeHelper) + +这是一个用于生成机器码的轻量级工具项目,适用于需要根据硬件信息生成唯一机器码的场景。 + +## 项目简介 + +本项目提供了一个静态类 `MachineCodeHelper`,用于获取当前机器的唯一标识码。该工具可用于软件授权、设备绑定等场景。 + +## 主要功能 + +- **获取机器码**:根据当前设备的硬件信息生成唯一的机器码字符串。 + +## 使用方法 + +1. 将本项目编译为 DLL 或直接引用源代码。 +2. 调用静态方法 `MachineCodeHelper.GetMachineCode()` 获取机器码。 + +```csharp +using MachineCodeHelper; + +string machineCode = MachineCodeHelper.GetMachineCode(); +Console.WriteLine("Machine Code: " + machineCode); +``` + +## 项目结构 + +- `Class1.cs`:核心代码文件,包含 `MachineCodeHelper` 类及生成机器码的逻辑。 +- `MachineCodeHelper.csproj`:C# 项目文件。 +- `MachineCodeHelper.sln`:Visual Studio 解决方案文件。 + +## 注意事项 + +- 本项目目前依赖于 Windows 系统的硬件信息获取方式,可能不适用于跨平台环境。 +- 如需增强安全性,建议结合加密算法对生成的机器码进行处理。 + +## 贡献与反馈 + +欢迎提交 Issue 和 Pull Request 来改进本项目。请遵循项目的代码规范并提供清晰的提交说明。 + +## 许可证 + +本项目采用 MIT License。详见项目 LICENSE 文件。 \ No newline at end of file