{"id":19664420,"url":"https://github.com/ljnath/randomstring4net","last_synced_at":"2026-04-23T18:01:15.582Z","repository":{"id":64366614,"uuid":"296568014","full_name":"ljnath/RandomString4Net","owner":"ljnath","description":"A lightweight, zero-dependency .NET library for generating random strings and numbers across 13 character categories — lowercase, uppercase, alphanumeric, symbols, and custom sets. Ideal for passwords, tokens, OTPs, and unique identifiers.","archived":false,"fork":false,"pushed_at":"2026-04-23T16:19:47.000Z","size":92,"stargazers_count":12,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-23T17:34:44.474Z","etag":null,"topics":["cross-platform","customsymbols","keygen","mixedcase","nonce","otp","password","password-generator","password-strength","random","random-generation","random-number-generator","random-password-generator","randomstring","randomstringsgenerator","salt","securerandom","symbols","token","unique"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ljnath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2020-09-18T08:55:52.000Z","updated_at":"2026-04-23T16:12:28.000Z","dependencies_parsed_at":"2023-11-15T05:29:05.005Z","dependency_job_id":"271baaea-7fcb-4298-8549-9853bb60402b","html_url":"https://github.com/ljnath/RandomString4Net","commit_stats":{"total_commits":43,"total_committers":1,"mean_commits":43.0,"dds":0.0,"last_synced_commit":"60095a1ca38f5700c25e50754bb90f01acf93cdb"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ljnath/RandomString4Net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FRandomString4Net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FRandomString4Net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FRandomString4Net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FRandomString4Net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ljnath","download_url":"https://codeload.github.com/ljnath/RandomString4Net/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljnath%2FRandomString4Net/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32191873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T15:28:30.493Z","status":"ssl_error","status_checked_at":"2026-04-23T15:28:29.972Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cross-platform","customsymbols","keygen","mixedcase","nonce","otp","password","password-generator","password-strength","random","random-generation","random-number-generator","random-password-generator","randomstring","randomstringsgenerator","salt","securerandom","symbols","token","unique"],"created_at":"2024-11-11T16:17:45.981Z","updated_at":"2026-04-23T18:01:15.568Z","avatar_url":"https://github.com/ljnath.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RandomString4Net\n### Version 1.10.0\n\nAuthor : Lakhya Jyoti Nath (ljnath)\u003cbr\u003e\nDate : September 2020 - April 2026\u003cbr\u003e\nEmail : ljnath@ljnath.com\u003cbr\u003e\nWebsite : https://ljnath.com\n\n[![Nuget](https://img.shields.io/nuget/v/RandomString4Net)](https://www.nuget.org/packages/RandomString4Net/)\n[![Nuget](https://img.shields.io/nuget/dt/RandomString4Net)](https://www.nuget.org/stats/packages/RandomString4Net)\n![GitHub](https://img.shields.io/github/license/ljnath/RandomString4Net)\n![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/ljnath/RandOMString4Net)\n![Codecov](https://codecov.io/gh/ljnath/PyRandomString/graph/badge.svg?token=61BPmhL4uA)\n\n\n## Introduction\nRandomString4Net is a library developed in .NET Framework to generate N random strings of M length from various categories. It is fast and suports string generation of various length.\u003cbr\u003e\u003cbr\u003e\nIt is parameterized to generate both a single or a list of random strings.\u003cbr\u003e\nRandom strings can be of types alphabet and alphanumeric supporting all the cases viz. lower, upper and mixed.\u003cbr\u003e\nIt also supports symbol during the random string generation process. Following are the list of supported symbols\n\u003cbr\u003e\n!#$%\u0026'()*+,-./:;\u003c=\u003e?@[]\\^_`{|}~\"\n\nIt also allows you to generate random string with only a subset of symbols from the above supported list. It is an ideal use for project like\n* password generator\n* mobile number generator\n* unique-id generator\n* unique filename generator\n* raw data generator for data processing/parsing projects\n* fake name generator\netc. etc.\n\n\n\n## Features\n* Supports single or multiple random string generation \n* Supports random string generation from alphabet, numbers, symbols or a combination of them\n* Supports customized length of randon string\n* Supports random length of generated strings with a fixed max length\n* Supports true unique random number generation (v1.3.0)\n* Built with compilation conditions to take advantage of newer .NET Framework functionalities\n* Improved performance in newer .NET Framework ( \u003e2.0)\n* Added support to force include strings of each type (version 1.4.0)\n* Added support for .NET (\u003e5.0)\n* Added support for .NET Core (\u003e2.2)\n* Added support for .NET Standard (\u003e2.0)\n* Added support for RandomNumberGenerator in .NET 6.0 and higher as RNGCryptoServiceProvider is marked as obsolete\n* Added support for .NET 8.0\n* Added support for .NET 9.0\n* Updated random seed to 4 (https://github.com/jshergal/)\n* Added support for .NET 10.0\n\n\n## Supported Types\n* **NUMBER** : *0123456789*\n* **SYMBOLS** : *!#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[]\\^_`{|}~\"*\n* **ALPHABET_LOWERCASE** : *abcdefghijklmnopqrstuvwxyz*\n* **ALPHABET_UPPERCASE** : *ABCDEFGHIJKLMNOPQRSTUVWXYZ*\n* **ALPHABET_MIXEDCASE** : *abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ*\n* **ALPHANUMERIC_LOWERCASE** : *abcdefghijklmnopqrstuvwxyz0123456789*\n* **ALPHANUMERIC_UPPERCASE** : *ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789*\n* **ALPHANUMERIC_MIXEDCASE** : *abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789*\n* **ALPHABET_LOWERCASE_WITH_SYMBOLS** : *abcdefghijklmnopqrstuvwxyz!#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[]\\^_`{|}~\"*\n* **ALPHABET_UPPERCASE_WITH_SYMBOLS** : *ABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[]\\^_`{|}~\"*\n* **ALPHABET_MIXEDCASE_WITH_SYMBOLS** : *abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[]\\^_`{|}~\"*\n* **ALPHANUMERIC_LOWERCASE_WITH_SYMBOLS** : *abcdefghijklmnopqrstuvwxyz0123456789!#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[]\\^_`{|}~\"*\n* **ALPHANUMERIC_UPPERCASE_WITH_SYMBOLS** : *ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[]\\^_`{|}~\"*\n* **ALPHANUMERIC_MIXEDCASE_WITH_SYMBOLS** : *abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\" !#$%\u0026'()\\*+,-./:;\u003c=\u003e?@[]\\^_`{|}~\"*\n\n\n## Get Started\n### 1. Install Package\n```ini\nPM\u003e Install-Package RandomString4Net\n```\n### 2. Add reference in your project\n\n### 3. Call the methods in your program\n```csharp\nusing RandomString4Net;\n\nnamespace RandomString4NetTester\n{\n    public void Main()\n    {\n        // generating one random string from lowercase alphabets\n        string randomString = RandomString.GetString(Types.ALPHABET_LOWERCASE);\n        System.Console.WriteLine(randomString);\n\n        // generating 100 random string from all mixedcase alphabet, numbers and all supported symbols\n        List\u003cstring\u003e randomAlphaNumbericStrings = RandomString.GetStrings(Types.ALPHANUMERIC_MIXEDCASE_WITH_SYMBOLS, 100);\n        foreach (string s in randomAlphaNumbericStrings)\n            System.Console.WriteLine(s);\n\n        // generating 200 random string from uppercase alphabet with custom symbols\n        List\u003cstring\u003e randomAlphabetWithCustomSymbols = RandomString.GetStrings(Types.ALPHABET_UPPERCASE, 200, \"/+*-\");\n        foreach (string s in randomAlphabetWithCustomSymbols)\n            System.Console.WriteLine(s);\n\n        // generating 1000 true random strings of length 20 from uppercase alphabet with custom symbols\n        List\u003cstring\u003e trueUniqueRandomStrings = RandomString.GetStrings(Types.ALPHABET_UPPERCASE, 1000, 20, false, true);\n        foreach (string s in trueUniqueRandomStrings)\n            System.Console.WriteLine(s);\n\n        // generating 100 random string of mixedcase alphanummeric with custom symbols\n        List\u003cstring\u003e randomAlphabetWithCustomSymbols = RandomString.GetStrings(Types.ALPHANUMERIC_MIXEDCASE_WITH_SYMBOLS, 100, \"/+*-\", forceOccuranceOfEachType: true);\n        foreach (string s in randomAlphabetWithCustomSymbols)\n            System.Console.WriteLine(s);\n    }\n}\n```\n    \n## Give a Star! ⭐️\n\nIf you find this repository useful, please give it a star.\nThanks in advance !\n\n## License\n\nCopyright © 2020-2026 [Lakhya's Innovation Inc.](https://github.com/ljnath/) under the [MIT License](https://github.com/ljnath/RandomString4Net/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljnath%2Frandomstring4net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fljnath%2Frandomstring4net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljnath%2Frandomstring4net/lists"}