{"id":26368489,"url":"https://github.com/mhmmdsmdi/autolicensing","last_synced_at":"2025-07-09T05:04:29.652Z","repository":{"id":218269492,"uuid":"745761643","full_name":"mhmmdsmdi/AutoLicensing","owner":"mhmmdsmdi","description":"This package provides an open-source license manager.","archived":false,"fork":false,"pushed_at":"2025-03-03T11:15:02.000Z","size":66,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T03:18:44.413Z","etag":null,"topics":["asp","asp-net-core","csharp","license","license-management","licensing","microservice","wpf"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhmmdsmdi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-20T04:09:52.000Z","updated_at":"2025-05-31T19:08:14.000Z","dependencies_parsed_at":"2024-02-04T12:36:05.637Z","dependency_job_id":null,"html_url":"https://github.com/mhmmdsmdi/AutoLicensing","commit_stats":null,"previous_names":["mhmmdsmdi/fluentlicensing","mhmmdsmdi/autolicensing"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mhmmdsmdi/AutoLicensing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmmdsmdi%2FAutoLicensing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmmdsmdi%2FAutoLicensing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmmdsmdi%2FAutoLicensing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmmdsmdi%2FAutoLicensing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhmmdsmdi","download_url":"https://codeload.github.com/mhmmdsmdi/AutoLicensing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmmdsmdi%2FAutoLicensing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264396622,"owners_count":23601541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp","asp-net-core","csharp","license","license-management","licensing","microservice","wpf"],"created_at":"2025-03-16T22:39:40.678Z","updated_at":"2025-07-09T05:04:29.631Z","avatar_url":"https://github.com/mhmmdsmdi.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AutoLicensing\n\n[![NuGet](https://img.shields.io/nuget/v/AutoLicensing)](https://www.nuget.org/packages/AutoLicensing/)\n\nThis package provides an open-source license manager.\n\n## Usage\n\nUse this command to add AutoLicensing to your project.\n\n```C#\ndotnet add package AutoLicensing --version 1.0.5\n```\n\n### Generate license\n\n```C#\n    var key = LicenseKeyGenerator.GenerateRsaKeyPair();\n\n    var privateKey = key.PrivateKey;\n    var publicKey = key.PublicKey;\n\n    var signedLicense = new LicenseFactory()\n        .WithRsaPrivateKey(key.PrivateKey)\n        .WithName(\"Enterprise License\")\n        .WithCustomerName(\"Some Guy\")\n        .WithProduct(new LicenseProductFactory()\n            .WithName(\"Application 1\")\n            .WithExpiryDate(DateTime.Now.AddDays(180))\n            .WithAttribute(\"Limitation 1\", 100)\n            .WithFeature(\"Feature 1\")\n            .WithFeature(\"Feature 2\")\n            .Create())\n        .SignAndCreate();\n\n        var licenseKey = signedLicense.Export();\n```\n\n### Verify license\n\n```C#\n    var signedLicense = Licenser.Verifier\n        .WithRsaPublicKey(publicKey)\n        .LoadAndVerify(licenseKey);\n```\n\n## Misc.\n\nYou can change the confusing bytes by using this code\n\n```C#\n    Confuser.ConfusingBytes = \"Some random bytes\"u8.ToArray();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhmmdsmdi%2Fautolicensing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhmmdsmdi%2Fautolicensing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhmmdsmdi%2Fautolicensing/lists"}