From 823881dc6f1c62564056066943e3cff2040abb4d Mon Sep 17 00:00:00 2001 From: Ruben Bisharyan Date: Wed, 6 Mar 2024 10:50:21 +0400 Subject: [PATCH] Remove & symbol from password generation --- src/Pandatech.Crypto/Pandatech.Crypto.csproj | 2 +- src/Pandatech.Crypto/Password.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Pandatech.Crypto/Pandatech.Crypto.csproj b/src/Pandatech.Crypto/Pandatech.Crypto.csproj index 861725b..ea5b43c 100644 --- a/src/Pandatech.Crypto/Pandatech.Crypto.csproj +++ b/src/Pandatech.Crypto/Pandatech.Crypto.csproj @@ -8,7 +8,7 @@ MIT pandatech.png Readme.md - 2.2.10 + 2.2.11 Pandatech.Crypto Pandatech, library, encryption, hash, algorythms, security PandaTech.Crypto is a .NET library simplifying common cryptograhic functions. diff --git a/src/Pandatech.Crypto/Password.cs b/src/Pandatech.Crypto/Password.cs index 1cab70e..629ea1a 100644 --- a/src/Pandatech.Crypto/Password.cs +++ b/src/Pandatech.Crypto/Password.cs @@ -5,7 +5,7 @@ public static class Password private const string UppercaseChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; private const string LowercaseChars = "abcdefghijklmnopqrstuvwxyz"; private const string DigitChars = "0123456789"; - private const string SpecialChars = "!@#$%^&*()-_=+[]{}|;:,.<>?"; + private const string SpecialChars = "!@#$%^*()-_=+[]{}|;:,.<>?"; public static string GenerateRandom(int length, bool includeUppercase, bool includeLowercase, bool includeDigits, bool includeSpecialChars)