Skip to content

Commit 0402f94

Browse files
committed
v1.6 - added support for .net core, .net standard and .net
1 parent 60095a1 commit 0402f94

File tree

11 files changed

+263
-22
lines changed

11 files changed

+263
-22
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Lakhya Jyoti Nath
3+
Copyright (c) 2020-2023 Lakhya Jyoti Nath
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# RandomString4Net
2-
### Version 1.5.0
2+
### Version 1.6.0
33

44
Author : Lakhya Jyoti Nath (ljnath)<br>
5-
Date : September 2020 - December 2022 - January 2023<br>
5+
Date : September 2020 - December 2022 - January 2023 - October 2023<br>
66
Email : [email protected]<br>
77
Website : https://www.ljnath.com
88

@@ -40,6 +40,9 @@ etc. etc.
4040
* Built with compilation conditions to take advantage of newer .NET Framework functionalities
4141
* Improved performance in newer .NET Framework ( >2.0)
4242
* Added support to force include strings of each type (version 1.4.0)
43+
* Added support for .NET (>5.0)
44+
* Added support for .NET Core (>2.2)
45+
* Added support for .NET Standard (>2.0)
4346

4447
## Supported Types
4548
* **NUMBER** : *0123456789*
@@ -107,4 +110,4 @@ Thanks in advance !
107110

108111
## License
109112

110-
Copyright © 2023 [Lakhya's Innovation Inc.](https://github.com/ljnath/) under the [MIT License](https://github.com/ljnath/RandomString4Net/blob/master/LICENSE).
113+
Copyright © 2020-2023 [Lakhya's Innovation Inc.](https://github.com/ljnath/) under the [MIT License](https://github.com/ljnath/RandomString4Net/blob/master/LICENSE).

RandomString4Net/DataSource.cs

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1-
namespace RandomString4Net
1+
/**
2+
*
3+
* RandomString4Net - .NET library to generate N random strings of M length from various categories
4+
* Copyright (c) 2020-2023 Lakhya Jyoti Nath
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*
24+
* Website: https://ljnath.com
25+
26+
*
27+
**/
28+
namespace RandomString4Net
229
{
330
/// <summary>
431
/// Class containing the valid inputs for random string generation

RandomString4Net/Exceptions/InvalidLengthException.cs

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1-
using System;
1+
/**
2+
*
3+
* RandomString4Net - .NET library to generate N random strings of M length from various categories
4+
* Copyright (c) 2020-2023 Lakhya Jyoti Nath
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*
24+
* Website: https://ljnath.com
25+
26+
*
27+
**/
28+
using System;
229
using System.Runtime.Serialization;
330

431
namespace RandomString4Net.Exceptions

RandomString4Net/Exceptions/UnsupportedSymbolException.cs

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1-
using System;
1+
/**
2+
*
3+
* RandomString4Net - .NET library to generate N random strings of M length from various categories
4+
* Copyright (c) 2020-2023 Lakhya Jyoti Nath
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*
24+
* Website: https://ljnath.com
25+
26+
*
27+
**/
28+
using System;
229
using System.Runtime.Serialization;
330

431
namespace RandomString4Net.Exceptions

RandomString4Net/RandomString.cs

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1-
using RandomString4Net.Exceptions;
1+
/**
2+
*
3+
* RandomString4Net - .NET library to generate N random strings of M length from various categories
4+
* Copyright (c) 2020-2023 Lakhya Jyoti Nath
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*
24+
* Website: https://ljnath.com
25+
26+
*
27+
**/
28+
using RandomString4Net.Exceptions;
229
using System;
330
using System.Collections.Generic;
431
using System.Security.Cryptography;
Lines changed: 114 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,131 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net20;net35;net40;net45;net451;net452;net46;net461;net462;net47;net471;net472;net48</TargetFrameworks>
4-
<Version>1.5.0</Version>
3+
<TargetFrameworks>net20;net35;net40;net45;net451;net452;net46;net461;net462;net47;net471;net472;net48;netcoreapp2.0;netcoreapp2.1;netcoreapp2.2;netcoreapp3.0;netcoreapp3.1;netstandard2.0;netstandard2.1;net5.0-windows;net6.0-windows;net7.0-windows</TargetFrameworks>
4+
<Version>1.6.0</Version>
55
<Authors>Lakhya Jyoti Nath</Authors>
66
<Company>Lakhya's Innovation Inc.</Company>
77
<Description>.NET library to generate N random strings of M length from various categories</Description>
8-
<Copyright>Copyright © Lakhya's Innovation Inc. 2023</Copyright>
8+
<Copyright>Copyright © 2020-2023 Lakhya's Innovation Inc.</Copyright>
99
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1010
<PackageProjectUrl>https://github.com/ljnath/RandomString4Net</PackageProjectUrl>
1111
<RepositoryType>git</RepositoryType>
1212
<RepositoryUrl>https://github.com/ljnath/RandomString4Net.git</RepositoryUrl>
1313
<PackageTags>randomstring4net ljnath lakhya lakhyajyoti innovation lakhya's inc. lakhyajyotinath randomstring random string C# libray password generator passwordgenerator generation symbols randomsymbols lowercase uppercase mixedcase customsymbols randomnumber number</PackageTags>
14-
<PackageReleaseNotes>
15-
- Initial release with support for alphabet, alphanumeric with any without symbols for all cases
14+
<PackageReleaseNotes>- Initial release with support for alphabet, alphanumeric with any without symbols for all cases
1615
- Added support for random number generation
1716
- Added support for multiple .NET Framework
1817
- Added support to generate true unique random numbers
1918
- Added performance improvement for .NET Framework &gt; 2.0
20-
- Added support to generate random strings by including strings of each type</PackageReleaseNotes>
21-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
22-
<AssemblyVersion>1.5.0.0</AssemblyVersion>
23-
<FileVersion>1.5.0.0</FileVersion>
19+
- Added support to generate random strings by including strings of each type
20+
- Added support for .NET (&gt;5.0)
21+
- Added support for .NET Core (&gt;2.2)
22+
- Added support for .NET Standard (&gt;2.0)</PackageReleaseNotes>
23+
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
24+
<AssemblyVersion>1.6.0.0</AssemblyVersion>
25+
<FileVersion>1.6.0.0</FileVersion>
2426
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
27+
<AutoGenerateBindingRedirects>False</AutoGenerateBindingRedirects>
28+
<Title>$(AssemblyName)</Title>
29+
<PackageReadmeFile>README.md</PackageReadmeFile>
30+
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
31+
<EnableNETAnalyzers>True</EnableNETAnalyzers>
32+
<SignAssembly>True</SignAssembly>
33+
<AssemblyOriginatorKeyFile>C:\devtools\keys\code_signing_ljnath.pfx</AssemblyOriginatorKeyFile>
34+
<IncludeSymbols>False</IncludeSymbols>
2535
</PropertyGroup>
36+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net20|AnyCPU'">
37+
<DebugType>full</DebugType>
38+
</PropertyGroup>
39+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net35|AnyCPU'">
40+
<DebugType>full</DebugType>
41+
</PropertyGroup>
42+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net40|AnyCPU'">
43+
<DebugType>full</DebugType>
44+
</PropertyGroup>
45+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net45|AnyCPU'">
46+
<DebugType>full</DebugType>
47+
</PropertyGroup>
48+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net451|AnyCPU'">
49+
<DebugType>full</DebugType>
50+
</PropertyGroup>
51+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net452|AnyCPU'">
52+
<DebugType>full</DebugType>
53+
</PropertyGroup>
54+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net46|AnyCPU'">
55+
<DebugType>full</DebugType>
56+
</PropertyGroup>
57+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net461|AnyCPU'">
58+
<DebugType>full</DebugType>
59+
</PropertyGroup>
60+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net462|AnyCPU'">
61+
<DebugType>full</DebugType>
62+
</PropertyGroup>
63+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net47|AnyCPU'">
64+
<DebugType>full</DebugType>
65+
</PropertyGroup>
66+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net471|AnyCPU'">
67+
<DebugType>full</DebugType>
68+
</PropertyGroup>
69+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net472|AnyCPU'">
70+
<DebugType>full</DebugType>
71+
</PropertyGroup>
72+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net48|AnyCPU'">
73+
<DebugType>full</DebugType>
74+
</PropertyGroup>
75+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netcoreapp3.1|AnyCPU'">
76+
<DebugType>full</DebugType>
77+
</PropertyGroup>
78+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net20|AnyCPU'">
79+
<DebugType>full</DebugType>
80+
</PropertyGroup>
81+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net35|AnyCPU'">
82+
<DebugType>full</DebugType>
83+
</PropertyGroup>
84+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net40|AnyCPU'">
85+
<DebugType>full</DebugType>
86+
</PropertyGroup>
87+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net45|AnyCPU'">
88+
<DebugType>full</DebugType>
89+
</PropertyGroup>
90+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net451|AnyCPU'">
91+
<DebugType>full</DebugType>
92+
</PropertyGroup>
93+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net452|AnyCPU'">
94+
<DebugType>full</DebugType>
95+
</PropertyGroup>
96+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net46|AnyCPU'">
97+
<DebugType>full</DebugType>
98+
</PropertyGroup>
99+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net461|AnyCPU'">
100+
<DebugType>full</DebugType>
101+
</PropertyGroup>
102+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net462|AnyCPU'">
103+
<DebugType>full</DebugType>
104+
</PropertyGroup>
105+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net47|AnyCPU'">
106+
<DebugType>full</DebugType>
107+
</PropertyGroup>
108+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net471|AnyCPU'">
109+
<DebugType>full</DebugType>
110+
</PropertyGroup>
111+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net472|AnyCPU'">
112+
<DebugType>full</DebugType>
113+
</PropertyGroup>
114+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net48|AnyCPU'">
115+
<DebugType>full</DebugType>
116+
</PropertyGroup>
117+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp3.1|AnyCPU'">
118+
<DebugType>full</DebugType>
119+
</PropertyGroup>
120+
<ItemGroup>
121+
<Compile Remove="build\**" />
122+
<EmbeddedResource Remove="build\**" />
123+
<None Remove="build\**" />
124+
</ItemGroup>
125+
<ItemGroup>
126+
<None Include="..\README.md">
127+
<Pack>True</Pack>
128+
<PackagePath>\</PackagePath>
129+
</None>
130+
</ItemGroup>
26131
</Project>

RandomString4Net/Types.cs

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1-
using System;
1+
/**
2+
*
3+
* RandomString4Net - .NET library to generate N random strings of M length from various categories
4+
* Copyright (c) 2020-2023 Lakhya Jyoti Nath
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*
24+
* Website: https://ljnath.com
25+
26+
*
27+
**/
28+
using System;
229

330
#if NET20
431
namespace System.Runtime.CompilerServices

RandomString4NetTest/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[assembly: AssemblyConfiguration("")]
77
[assembly: AssemblyCompany("Lakhya's Innovation Inc")]
88
[assembly: AssemblyProduct("RandomString4NetTest")]
9-
[assembly: AssemblyCopyright("Copyright © Lakhya's Innovation Inc. 2023")]
9+
[assembly: AssemblyCopyright("Copyright © 2020-2023 Lakhya's Innovation Inc.")]
1010
[assembly: AssemblyTrademark("")]
1111
[assembly: AssemblyCulture("")]
1212

RandomString4NetTester/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
using RandomString4Net;
22
using System.Collections.Generic;
33
using System.Diagnostics;
4-
using System.IO;
54
using System.Linq;
6-
using System.Runtime.InteropServices;
75

86
namespace RandomString4NetTester
97
{

0 commit comments

Comments
 (0)