├── .gitattributes ├── .gitignore ├── PasswordGenerator.sln ├── PasswordGenerator ├── App.config ├── MainForm.Designer.cs ├── MainForm.cs ├── MainForm.resx ├── Model │ └── PasswordOptions.cs ├── PasswordGenerator.csproj ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings └── Services │ ├── IPasswordGenerator.cs │ ├── IThemeManager.cs │ ├── PasswordGeneratorService.cs │ └── ThemeManager.cs └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Oo]ut/ 33 | [Ll]og/ 34 | [Ll]ogs/ 35 | 36 | # Visual Studio 2015/2017 cache/options directory 37 | .vs/ 38 | # Uncomment if you have tasks that create the project's static files in wwwroot 39 | #wwwroot/ 40 | 41 | # Visual Studio 2017 auto generated files 42 | Generated\ Files/ 43 | 44 | # MSTest test Results 45 | [Tt]est[Rr]esult*/ 46 | [Bb]uild[Ll]og.* 47 | 48 | # NUnit 49 | *.VisualState.xml 50 | TestResult.xml 51 | nunit-*.xml 52 | 53 | # Build Results of an ATL Project 54 | [Dd]ebugPS/ 55 | [Rr]eleasePS/ 56 | dlldata.c 57 | 58 | # Benchmark Results 59 | BenchmarkDotNet.Artifacts/ 60 | 61 | # .NET Core 62 | project.lock.json 63 | project.fragment.lock.json 64 | artifacts/ 65 | 66 | # ASP.NET Scaffolding 67 | ScaffoldingReadMe.txt 68 | 69 | # StyleCop 70 | StyleCopReport.xml 71 | 72 | # Files built by Visual Studio 73 | *_i.c 74 | *_p.c 75 | *_h.h 76 | *.ilk 77 | *.meta 78 | *.obj 79 | *.iobj 80 | *.pch 81 | *.pdb 82 | *.ipdb 83 | *.pgc 84 | *.pgd 85 | *.rsp 86 | *.sbr 87 | *.tlb 88 | *.tli 89 | *.tlh 90 | *.tmp 91 | *.tmp_proj 92 | *_wpftmp.csproj 93 | *.log 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio LightSwitch build output 298 | **/*.HTMLClient/GeneratedArtifacts 299 | **/*.DesktopClient/GeneratedArtifacts 300 | **/*.DesktopClient/ModelManifest.xml 301 | **/*.Server/GeneratedArtifacts 302 | **/*.Server/ModelManifest.xml 303 | _Pvt_Extensions 304 | 305 | # Paket dependency manager 306 | .paket/paket.exe 307 | paket-files/ 308 | 309 | # FAKE - F# Make 310 | .fake/ 311 | 312 | # CodeRush personal settings 313 | .cr/personal 314 | 315 | # Python Tools for Visual Studio (PTVS) 316 | __pycache__/ 317 | *.pyc 318 | 319 | # Cake - Uncomment if you are using it 320 | # tools/** 321 | # !tools/packages.config 322 | 323 | # Tabs Studio 324 | *.tss 325 | 326 | # Telerik's JustMock configuration file 327 | *.jmconfig 328 | 329 | # BizTalk build output 330 | *.btp.cs 331 | *.btm.cs 332 | *.odx.cs 333 | *.xsd.cs 334 | 335 | # OpenCover UI analysis results 336 | OpenCover/ 337 | 338 | # Azure Stream Analytics local run output 339 | ASALocalRun/ 340 | 341 | # MSBuild Binary and Structured Log 342 | *.binlog 343 | 344 | # NVidia Nsight GPU debugger configuration file 345 | *.nvuser 346 | 347 | # MFractors (Xamarin productivity tool) working folder 348 | .mfractor/ 349 | 350 | # Local History for Visual Studio 351 | .localhistory/ 352 | 353 | # BeatPulse healthcheck temp database 354 | healthchecksdb 355 | 356 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 357 | MigrationBackup/ 358 | 359 | # Ionide (cross platform F# VS Code tools) working folder 360 | .ionide/ 361 | 362 | # Fody - auto-generated XML schema 363 | FodyWeavers.xsd -------------------------------------------------------------------------------- /PasswordGenerator.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.12.35527.113 d17.12 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PasswordGenerator", "PasswordGenerator\PasswordGenerator.csproj", "{D48863A9-89DD-4DA5-8733-6265B615E033}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {D48863A9-89DD-4DA5-8733-6265B615E033}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {D48863A9-89DD-4DA5-8733-6265B615E033}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {D48863A9-89DD-4DA5-8733-6265B615E033}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {D48863A9-89DD-4DA5-8733-6265B615E033}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /PasswordGenerator/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /PasswordGenerator/MainForm.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace PasswordGenerator 2 | { 3 | partial class MainForm 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); 32 | this.lblLength = new System.Windows.Forms.Label(); 33 | this.numPasswordLength = new System.Windows.Forms.NumericUpDown(); 34 | this.chkUppercase = new System.Windows.Forms.CheckBox(); 35 | this.chkLowercase = new System.Windows.Forms.CheckBox(); 36 | this.chkNumbers = new System.Windows.Forms.CheckBox(); 37 | this.chkSpecial = new System.Windows.Forms.CheckBox(); 38 | this.btnGeneratePassword = new System.Windows.Forms.Button(); 39 | this.comboTheme = new System.Windows.Forms.ComboBox(); 40 | this.txtPassword = new System.Windows.Forms.TextBox(); 41 | this.btnCopy = new System.Windows.Forms.Button(); 42 | this.progressStrength = new System.Windows.Forms.ProgressBar(); 43 | this.lblStrength = new System.Windows.Forms.Label(); 44 | this.tableLayoutPanel1.SuspendLayout(); 45 | ((System.ComponentModel.ISupportInitialize)(this.numPasswordLength)).BeginInit(); 46 | this.SuspendLayout(); 47 | // 48 | // tableLayoutPanel1 49 | // 50 | this.tableLayoutPanel1.ColumnCount = 2; 51 | this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); 52 | this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); 53 | this.tableLayoutPanel1.Controls.Add(this.lblLength, 0, 0); 54 | this.tableLayoutPanel1.Controls.Add(this.numPasswordLength, 1, 0); 55 | this.tableLayoutPanel1.Controls.Add(this.chkUppercase, 0, 1); 56 | this.tableLayoutPanel1.Controls.Add(this.chkLowercase, 0, 2); 57 | this.tableLayoutPanel1.Controls.Add(this.chkNumbers, 0, 3); 58 | this.tableLayoutPanel1.Controls.Add(this.chkSpecial, 0, 4); 59 | this.tableLayoutPanel1.Controls.Add(this.btnGeneratePassword, 0, 5); 60 | this.tableLayoutPanel1.Controls.Add(this.comboTheme, 1, 5); 61 | this.tableLayoutPanel1.Controls.Add(this.txtPassword, 0, 6); 62 | this.tableLayoutPanel1.Controls.Add(this.btnCopy, 1, 6); 63 | this.tableLayoutPanel1.Controls.Add(this.progressStrength, 0, 7); 64 | this.tableLayoutPanel1.Controls.Add(this.lblStrength, 1, 7); 65 | this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; 66 | this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); 67 | this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(4); 68 | this.tableLayoutPanel1.Name = "tableLayoutPanel1"; 69 | this.tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(13, 12, 13, 12); 70 | this.tableLayoutPanel1.RowCount = 8; 71 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F)); 72 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F)); 73 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F)); 74 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F)); 75 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F)); 76 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F)); 77 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F)); 78 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F)); 79 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); 80 | this.tableLayoutPanel1.Size = new System.Drawing.Size(512, 567); 81 | this.tableLayoutPanel1.TabIndex = 0; 82 | // 83 | // lblLength 84 | // 85 | this.lblLength.AutoSize = true; 86 | this.lblLength.Dock = System.Windows.Forms.DockStyle.Fill; 87 | this.lblLength.Location = new System.Drawing.Point(17, 12); 88 | this.lblLength.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 89 | this.lblLength.Name = "lblLength"; 90 | this.lblLength.Size = new System.Drawing.Size(235, 65); 91 | this.lblLength.TabIndex = 0; 92 | this.lblLength.Text = "Şifre Uzunluğu:"; 93 | this.lblLength.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 94 | // 95 | // numPasswordLength 96 | // 97 | this.numPasswordLength.Dock = System.Windows.Forms.DockStyle.Fill; 98 | this.numPasswordLength.Location = new System.Drawing.Point(260, 16); 99 | this.numPasswordLength.Margin = new System.Windows.Forms.Padding(4); 100 | this.numPasswordLength.Maximum = new decimal(new int[] { 101 | 20, 102 | 0, 103 | 0, 104 | 0}); 105 | this.numPasswordLength.Minimum = new decimal(new int[] { 106 | 8, 107 | 0, 108 | 0, 109 | 0}); 110 | this.numPasswordLength.Name = "numPasswordLength"; 111 | this.numPasswordLength.Size = new System.Drawing.Size(235, 22); 112 | this.numPasswordLength.TabIndex = 1; 113 | this.numPasswordLength.Value = new decimal(new int[] { 114 | 12, 115 | 0, 116 | 0, 117 | 0}); 118 | // 119 | // chkUppercase 120 | // 121 | this.chkUppercase.AutoSize = true; 122 | this.chkUppercase.Checked = true; 123 | this.chkUppercase.CheckState = System.Windows.Forms.CheckState.Checked; 124 | this.chkUppercase.Dock = System.Windows.Forms.DockStyle.Fill; 125 | this.chkUppercase.Location = new System.Drawing.Point(17, 81); 126 | this.chkUppercase.Margin = new System.Windows.Forms.Padding(4); 127 | this.chkUppercase.Name = "chkUppercase"; 128 | this.chkUppercase.Size = new System.Drawing.Size(235, 57); 129 | this.chkUppercase.TabIndex = 2; 130 | this.chkUppercase.Text = "Büyük Harfler (A-Z)"; 131 | // 132 | // chkLowercase 133 | // 134 | this.chkLowercase.AutoSize = true; 135 | this.chkLowercase.Checked = true; 136 | this.chkLowercase.CheckState = System.Windows.Forms.CheckState.Checked; 137 | this.chkLowercase.Dock = System.Windows.Forms.DockStyle.Fill; 138 | this.chkLowercase.Location = new System.Drawing.Point(17, 146); 139 | this.chkLowercase.Margin = new System.Windows.Forms.Padding(4); 140 | this.chkLowercase.Name = "chkLowercase"; 141 | this.chkLowercase.Size = new System.Drawing.Size(235, 57); 142 | this.chkLowercase.TabIndex = 3; 143 | this.chkLowercase.Text = "Küçük Harfler (a-z)"; 144 | // 145 | // chkNumbers 146 | // 147 | this.chkNumbers.AutoSize = true; 148 | this.chkNumbers.Checked = true; 149 | this.chkNumbers.CheckState = System.Windows.Forms.CheckState.Checked; 150 | this.chkNumbers.Dock = System.Windows.Forms.DockStyle.Fill; 151 | this.chkNumbers.Location = new System.Drawing.Point(17, 211); 152 | this.chkNumbers.Margin = new System.Windows.Forms.Padding(4); 153 | this.chkNumbers.Name = "chkNumbers"; 154 | this.chkNumbers.Size = new System.Drawing.Size(235, 57); 155 | this.chkNumbers.TabIndex = 4; 156 | this.chkNumbers.Text = "Rakamlar (0-9)"; 157 | // 158 | // chkSpecial 159 | // 160 | this.chkSpecial.AutoSize = true; 161 | this.chkSpecial.Dock = System.Windows.Forms.DockStyle.Fill; 162 | this.chkSpecial.Location = new System.Drawing.Point(17, 276); 163 | this.chkSpecial.Margin = new System.Windows.Forms.Padding(4); 164 | this.chkSpecial.Name = "chkSpecial"; 165 | this.chkSpecial.Size = new System.Drawing.Size(235, 57); 166 | this.chkSpecial.TabIndex = 5; 167 | this.chkSpecial.Text = "Özel Karakterler (!@#$)"; 168 | // 169 | // btnGeneratePassword 170 | // 171 | this.btnGeneratePassword.Dock = System.Windows.Forms.DockStyle.Fill; 172 | this.btnGeneratePassword.Location = new System.Drawing.Point(17, 341); 173 | this.btnGeneratePassword.Margin = new System.Windows.Forms.Padding(4); 174 | this.btnGeneratePassword.Name = "btnGeneratePassword"; 175 | this.btnGeneratePassword.Size = new System.Drawing.Size(235, 57); 176 | this.btnGeneratePassword.TabIndex = 6; 177 | this.btnGeneratePassword.Text = "Şifre Oluştur"; 178 | this.btnGeneratePassword.Click += new System.EventHandler(this.btnGeneratePassword_Click); 179 | // 180 | // comboTheme 181 | // 182 | this.comboTheme.Dock = System.Windows.Forms.DockStyle.Fill; 183 | this.comboTheme.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 184 | this.comboTheme.FormattingEnabled = true; 185 | this.comboTheme.Items.AddRange(new object[] { 186 | "Açık Tema", 187 | "Koyu Tema"}); 188 | this.comboTheme.Location = new System.Drawing.Point(260, 341); 189 | this.comboTheme.Margin = new System.Windows.Forms.Padding(4); 190 | this.comboTheme.Name = "comboTheme"; 191 | this.comboTheme.Size = new System.Drawing.Size(235, 24); 192 | this.comboTheme.TabIndex = 11; 193 | this.comboTheme.SelectedIndexChanged += new System.EventHandler(this.comboTheme_SelectedIndexChanged); 194 | // 195 | // txtPassword 196 | // 197 | this.tableLayoutPanel1.SetColumnSpan(this.txtPassword, 2); 198 | this.txtPassword.Dock = System.Windows.Forms.DockStyle.Fill; 199 | this.txtPassword.Location = new System.Drawing.Point(17, 406); 200 | this.txtPassword.Margin = new System.Windows.Forms.Padding(4); 201 | this.txtPassword.Name = "txtPassword"; 202 | this.txtPassword.ReadOnly = true; 203 | this.txtPassword.Size = new System.Drawing.Size(478, 22); 204 | this.txtPassword.TabIndex = 7; 205 | // 206 | // btnCopy 207 | // 208 | this.btnCopy.Dock = System.Windows.Forms.DockStyle.Fill; 209 | this.btnCopy.Location = new System.Drawing.Point(17, 471); 210 | this.btnCopy.Margin = new System.Windows.Forms.Padding(4); 211 | this.btnCopy.Name = "btnCopy"; 212 | this.btnCopy.Size = new System.Drawing.Size(235, 57); 213 | this.btnCopy.TabIndex = 8; 214 | this.btnCopy.Text = "Panoya Kopyala"; 215 | this.btnCopy.MouseClick += new System.Windows.Forms.MouseEventHandler(this.btnCopy_Click); 216 | // 217 | // progressStrength 218 | // 219 | this.progressStrength.Dock = System.Windows.Forms.DockStyle.Fill; 220 | this.progressStrength.Location = new System.Drawing.Point(260, 471); 221 | this.progressStrength.Margin = new System.Windows.Forms.Padding(4); 222 | this.progressStrength.Name = "progressStrength"; 223 | this.progressStrength.Size = new System.Drawing.Size(235, 57); 224 | this.progressStrength.TabIndex = 9; 225 | // 226 | // lblStrength 227 | // 228 | this.lblStrength.AutoSize = true; 229 | this.lblStrength.Dock = System.Windows.Forms.DockStyle.Fill; 230 | this.lblStrength.Location = new System.Drawing.Point(17, 532); 231 | this.lblStrength.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 232 | this.lblStrength.Name = "lblStrength"; 233 | this.lblStrength.Size = new System.Drawing.Size(235, 23); 234 | this.lblStrength.TabIndex = 10; 235 | this.lblStrength.Text = "Şifre Gücü: 0%"; 236 | this.lblStrength.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 237 | // 238 | // MainForm 239 | // 240 | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); 241 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 242 | this.ClientSize = new System.Drawing.Size(512, 567); 243 | this.Controls.Add(this.tableLayoutPanel1); 244 | this.Margin = new System.Windows.Forms.Padding(4); 245 | this.MinimumSize = new System.Drawing.Size(527, 605); 246 | this.Name = "MainForm"; 247 | this.Text = "Şifre Oluşturucu"; 248 | this.tableLayoutPanel1.ResumeLayout(false); 249 | this.tableLayoutPanel1.PerformLayout(); 250 | ((System.ComponentModel.ISupportInitialize)(this.numPasswordLength)).EndInit(); 251 | this.ResumeLayout(false); 252 | 253 | } 254 | 255 | #endregion 256 | 257 | private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; 258 | private System.Windows.Forms.Label lblLength; 259 | private System.Windows.Forms.NumericUpDown numPasswordLength; 260 | private System.Windows.Forms.CheckBox chkUppercase; 261 | private System.Windows.Forms.CheckBox chkLowercase; 262 | private System.Windows.Forms.CheckBox chkNumbers; 263 | private System.Windows.Forms.CheckBox chkSpecial; 264 | private System.Windows.Forms.Button btnGeneratePassword; 265 | private System.Windows.Forms.TextBox txtPassword; 266 | private System.Windows.Forms.Button btnCopy; 267 | private System.Windows.Forms.ProgressBar progressStrength; 268 | private System.Windows.Forms.Label lblStrength; 269 | private System.Windows.Forms.ComboBox comboTheme; 270 | } 271 | } -------------------------------------------------------------------------------- /PasswordGenerator/MainForm.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Forms; 3 | using PasswordGenerator.Models; 4 | using PasswordGenerator.Services; 5 | 6 | 7 | namespace PasswordGenerator 8 | { 9 | public partial class MainForm : Form 10 | { 11 | private readonly IPasswordGenerator _passwordGenerator; 12 | private readonly IThemeManager _themeManager; 13 | 14 | public MainForm() 15 | { 16 | InitializeComponent(); 17 | _passwordGenerator = new PasswordGeneratorService(); 18 | _themeManager = new ThemeManager(); 19 | InitializeControls(); 20 | } 21 | 22 | private void InitializeControls() 23 | { 24 | numPasswordLength.Minimum = 8; 25 | numPasswordLength.Maximum = 20; 26 | numPasswordLength.Value = 12; 27 | 28 | chkUppercase.Checked = true; 29 | chkLowercase.Checked = true; 30 | chkNumbers.Checked = true; 31 | 32 | 33 | } 34 | 35 | private void btnGeneratePassword_Click(object sender, EventArgs e) 36 | { 37 | try 38 | { 39 | var options = new PasswordOptions 40 | { 41 | Length = (int)numPasswordLength.Value, 42 | IncludeUppercase = chkUppercase.Checked, 43 | IncludeLowercase = chkLowercase.Checked, 44 | IncludeNumbers = chkNumbers.Checked, 45 | IncludeSpecial = chkSpecial.Checked 46 | }; 47 | 48 | string password = _passwordGenerator.GeneratePassword(options); 49 | txtPassword.Text = password; 50 | 51 | UpdatePasswordStrength(password); 52 | } 53 | catch (ArgumentException ex) 54 | { 55 | MessageBox.Show(ex.Message, "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error); 56 | } 57 | } 58 | 59 | private void UpdatePasswordStrength(string password) 60 | { 61 | int strength = _passwordGenerator.CalculatePasswordStrength(password); 62 | progressStrength.Value = strength; 63 | lblStrength.Text = $"Şifre Gücü: {strength}%"; 64 | } 65 | 66 | 67 | 68 | private void comboTheme_SelectedIndexChanged(object sender, EventArgs e) 69 | { 70 | _themeManager.ApplyTheme(this, comboTheme.SelectedIndex == 1); 71 | } 72 | 73 | private void btnCopy_Click(object sender, MouseEventArgs e) 74 | { 75 | if (!string.IsNullOrEmpty(txtPassword.Text)) 76 | { 77 | Clipboard.SetText(txtPassword.Text); 78 | MessageBox.Show("Şifre panoya kopyalandı!", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information); 79 | } 80 | } 81 | } 82 | } -------------------------------------------------------------------------------- /PasswordGenerator/MainForm.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /PasswordGenerator/Model/PasswordOptions.cs: -------------------------------------------------------------------------------- 1 | namespace PasswordGenerator.Models 2 | { 3 | public class PasswordOptions 4 | { 5 | public int Length { get; set; } 6 | public bool IncludeUppercase { get; set; } 7 | public bool IncludeLowercase { get; set; } 8 | public bool IncludeNumbers { get; set; } 9 | public bool IncludeSpecial { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /PasswordGenerator/PasswordGenerator.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {D48863A9-89DD-4DA5-8733-6265B615E033} 8 | WinExe 9 | PasswordGenerator 10 | PasswordGenerator 11 | v4.8.1 12 | 512 13 | true 14 | true 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | Form 51 | 52 | 53 | MainForm.cs 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | MainForm.cs 64 | 65 | 66 | ResXFileCodeGenerator 67 | Resources.Designer.cs 68 | Designer 69 | 70 | 71 | True 72 | Resources.resx 73 | 74 | 75 | SettingsSingleFileGenerator 76 | Settings.Designer.cs 77 | 78 | 79 | True 80 | Settings.settings 81 | True 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /PasswordGenerator/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Forms; 3 | 4 | namespace PasswordGenerator 5 | { 6 | static class Program 7 | { 8 | [STAThread] 9 | static void Main() 10 | { 11 | Application.EnableVisualStyles(); 12 | Application.SetCompatibleTextRenderingDefault(false); 13 | Application.Run(new MainForm()); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /PasswordGenerator/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | // Bir bütünleştirilmiş koda ilişkin Genel Bilgiler aşağıdaki öznitelikler kümesiyle 5 | // denetlenir. Bütünleştirilmiş kod ile ilişkili bilgileri değiştirmek için 6 | // bu öznitelik değerlerini değiştirin. 7 | [assembly: AssemblyTitle("PasswordGenerator")] 8 | [assembly: AssemblyDescription("")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("")] 11 | [assembly: AssemblyProduct("PasswordGenerator")] 12 | [assembly: AssemblyCopyright("Copyright © 2024")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // ComVisible özniteliğinin false olarak ayarlanması bu bütünleştirilmiş koddaki türleri 17 | // COM bileşenleri için görünmez yapar. Bu bütünleştirilmiş koddaki bir türe 18 | // erişmeniz gerekirse ComVisible özniteliğini o türde true olarak ayarlayın. 19 | [assembly: ComVisible(false)] 20 | 21 | // Bu proje COM'un kullanımına sunulursa, aşağıdaki GUID tür kitaplığının kimliği içindir 22 | [assembly: Guid("d48863a9-89dd-4da5-8733-6265b615e033")] 23 | 24 | // Bir derlemenin sürüm bilgileri aşağıdaki dört değerden oluşur: 25 | // 26 | // Ana Sürüm 27 | // İkincil Sürüm 28 | // Yapı Numarası 29 | // Düzeltme 30 | // 31 | [assembly: AssemblyVersion("1.0.0.0")] 32 | [assembly: AssemblyFileVersion("1.0.0.0")] 33 | -------------------------------------------------------------------------------- /PasswordGenerator/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Bu kod bir araç tarafından oluşturuldu. 4 | // Çalışma Zamanı Sürümü: 4.0.30319.42000 5 | // 6 | // Bu dosyada yapılan değişiklikler yanlış davranışa yol açabilir ve şu durumda kaybolur 7 | // kod yeniden oluşturulduğunda. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace PasswordGenerator.Properties 12 | { 13 | 14 | 15 | /// 16 | /// Yerelleştirilmiş dizeleri vs. aramak için türü kesin belirlenmiş bir kaynak sınıfı. 17 | /// 18 | // Bu sınıf, StronglyTypedResourceBuilder tarafından otomatik olarak 19 | // ResGen ya da Visual Studio gibi bir araç ile oluşturuldu. 20 | // Bir üye eklemek ya da kaldırmak için .ResX dosyanızı düyenleyin, sonra da ResGen 21 | // öğesini /str seçeneğiyle yeniden çalıştırın veya VS projenizi yeniden derleyin. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// Bu sınıf tarafından kullanılan, önbelleğe alınmış ResourceManager örneğini döndürür. 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PasswordGenerator.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// Geçerli iş parçacığının CurrentUICulture özelliğini, türü kesin belirlenmiş 56 | /// bu kaynak sınıfını kullanan tüm kaynak aramaları için geçersiz kılar. 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /PasswordGenerator/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /PasswordGenerator/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace PasswordGenerator.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /PasswordGenerator/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /PasswordGenerator/Services/IPasswordGenerator.cs: -------------------------------------------------------------------------------- 1 | using PasswordGenerator.Models; 2 | 3 | namespace PasswordGenerator.Services 4 | { 5 | public interface IPasswordGenerator 6 | { 7 | string GeneratePassword(Models.PasswordOptions options); // Tam namespace yolu ekleyin 8 | int CalculatePasswordStrength(string password); 9 | } 10 | } -------------------------------------------------------------------------------- /PasswordGenerator/Services/IThemeManager.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Forms; 2 | 3 | namespace PasswordGenerator.Services 4 | { 5 | public interface IThemeManager 6 | { 7 | void ApplyTheme(Form form, bool isDarkTheme); 8 | } 9 | } -------------------------------------------------------------------------------- /PasswordGenerator/Services/PasswordGeneratorService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Security.Cryptography; 4 | using System.Text; 5 | using PasswordGenerator.Models; 6 | 7 | namespace PasswordGenerator.Services 8 | { 9 | public class PasswordGeneratorService : IPasswordGenerator 10 | { 11 | private readonly RNGCryptoServiceProvider _rng; 12 | 13 | public PasswordGeneratorService() 14 | { 15 | _rng = new RNGCryptoServiceProvider(); 16 | } 17 | 18 | public string GeneratePassword(Models.PasswordOptions options) // Tam namespace yolu ekleyin 19 | { 20 | const string uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; 21 | const string lowercase = "abcdefghijklmnopqrstuvwxyz"; 22 | const string numbers = "0123456789"; 23 | const string special = "!@#$%^&*()_+-=[]{}|;:,.<>?"; 24 | 25 | var charSet = new StringBuilder(); 26 | var password = new StringBuilder(); 27 | 28 | if (options.IncludeUppercase) charSet.Append(uppercase); 29 | if (options.IncludeLowercase) charSet.Append(lowercase); 30 | if (options.IncludeNumbers) charSet.Append(numbers); 31 | if (options.IncludeSpecial) charSet.Append(special); 32 | 33 | if (charSet.Length == 0) 34 | throw new ArgumentException("En az bir karakter seti seçilmelidir."); 35 | 36 | for (int i = 0; i < options.Length; i++) 37 | { 38 | byte[] randomNumber = new byte[1]; 39 | _rng.GetBytes(randomNumber); 40 | password.Append(charSet[randomNumber[0] % charSet.Length]); 41 | } 42 | 43 | return password.ToString(); 44 | } 45 | 46 | public int CalculatePasswordStrength(string password) 47 | { 48 | int score = 0; 49 | if (password.Length >= 8) score += 20; 50 | if (password.Any(char.IsUpper)) score += 20; 51 | if (password.Any(char.IsLower)) score += 20; 52 | if (password.Any(char.IsDigit)) score += 20; 53 | if (password.Any(c => !char.IsLetterOrDigit(c))) score += 20; 54 | return score; 55 | } 56 | } 57 | } -------------------------------------------------------------------------------- /PasswordGenerator/Services/ThemeManager.cs: -------------------------------------------------------------------------------- 1 | using System.Drawing; 2 | using System.Windows.Forms; 3 | 4 | namespace PasswordGenerator.Services 5 | { 6 | public class ThemeManager : IThemeManager 7 | { 8 | private readonly Color _lightBackColor = Color.White; 9 | private readonly Color _lightForeColor = Color.Black; 10 | private readonly Color _darkBackColor = Color.FromArgb(45, 45, 48); 11 | private readonly Color _darkForeColor = Color.White; 12 | 13 | public void ApplyTheme(Form form, bool isDarkTheme) 14 | { 15 | Color backColor = isDarkTheme ? _darkBackColor : _lightBackColor; 16 | Color foreColor = isDarkTheme ? _darkForeColor : _lightForeColor; 17 | 18 | ApplyThemeToControl(form, backColor, foreColor); 19 | } 20 | 21 | private void ApplyThemeToControl(Control control, Color backColor, Color foreColor) 22 | { 23 | control.BackColor = backColor; 24 | control.ForeColor = foreColor; 25 | 26 | foreach (Control child in control.Controls) 27 | { 28 | ApplyThemeToControl(child, backColor, foreColor); 29 | } 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Şifre Üretici Uygulaması 2 | 3 | Bu uygulama, özelleştirilebilir seçeneklerle güçlü şifreler oluşturmanıza olanak tanır. Kullanıcılar şifre uzunluğunu, büyük/küçük harf, rakam ve özel karakter kullanımını belirleyebilirler. Oluşturulan şifrenin gücü bir ilerleme çubuğu ile gösterilir ve şifre panoya kopyalanabilir. Uygulama ayrıca tema değiştirme özelliğine sahiptir. 4 | 5 | Özellikler: 6 | 7 | * Özelleştirilebilir Şifre Oluşturma: Şifre uzunluğu, büyük/küçük harf, rakam ve özel karakter kullanımını kontrol edebilirsiniz. 8 | * Şifre Gücü Gösterimi: Oluşturulan şifrenin gücü bir ilerleme çubuğu ile gösterilir. 9 | * Panoya Kopyalama: Oluşturulan şifre tek bir tıklamayla panoya kopyalanabilir. 10 | * Tema Değiştirme: Uygulamanın temasını değiştirebilirsiniz. (Açık/Karanlık) 11 | 12 | 13 | Kullanım: 14 | 15 | 1. Uygulamayı çalıştırın 16 | --------------------------------------------------------------------------------