├── .gitignore ├── LICENSE ├── README.md ├── documentation └── cti_text_encryption_screenshot.png └── source_code ├── AES256BitExpress.cs ├── Compressor.cs ├── Form1.Designer.cs ├── Form1.cs ├── Form1.resx ├── FormAbout.Designer.cs ├── FormAbout.cs ├── FormAbout.resx ├── Language.cs ├── Program.cs ├── Properties ├── AssemblyInfo.cs ├── Resources.Designer.cs ├── Resources.resx ├── Settings.Designer.cs └── Settings.settings ├── Resources ├── btDecrypt.png ├── btEncrypt.png ├── buttonFont.png ├── copy24.png ├── cut24.png ├── info25.png ├── logo.png ├── paste24.png ├── reset25.png └── segoeui.ttf ├── app.config ├── config.cs ├── ctiencrypt.csproj ├── ctiencrypt.sln └── logo256.ico /.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 | *.suo 8 | *.user 9 | *.userosscache 10 | *.sln.docstates 11 | 12 | # User-specific files (MonoDevelop/Xamarin Studio) 13 | *.userprefs 14 | 15 | # Build results 16 | [Dd]ebug/ 17 | [Dd]ebugPublic/ 18 | [Rr]elease/ 19 | [Rr]eleases/ 20 | x64/ 21 | x86/ 22 | bld/ 23 | [Bb]in/ 24 | [Oo]bj/ 25 | [Ll]og/ 26 | 27 | # Visual Studio 2015 cache/options directory 28 | .vs/ 29 | # Uncomment if you have tasks that create the project's static files in wwwroot 30 | #wwwroot/ 31 | 32 | # MSTest test Results 33 | [Tt]est[Rr]esult*/ 34 | [Bb]uild[Ll]og.* 35 | 36 | # NUNIT 37 | *.VisualState.xml 38 | TestResult.xml 39 | 40 | # Build Results of an ATL Project 41 | [Dd]ebugPS/ 42 | [Rr]eleasePS/ 43 | dlldata.c 44 | 45 | # Benchmark Results 46 | BenchmarkDotNet.Artifacts/ 47 | 48 | # .NET Core 49 | project.lock.json 50 | project.fragment.lock.json 51 | artifacts/ 52 | **/Properties/launchSettings.json 53 | 54 | *_i.c 55 | *_p.c 56 | *_i.h 57 | *.ilk 58 | *.meta 59 | *.obj 60 | *.pch 61 | *.pdb 62 | *.pgc 63 | *.pgd 64 | *.rsp 65 | *.sbr 66 | *.tlb 67 | *.tli 68 | *.tlh 69 | *.tmp 70 | *.tmp_proj 71 | *.log 72 | *.vspscc 73 | *.vssscc 74 | .builds 75 | *.pidb 76 | *.svclog 77 | *.scc 78 | 79 | # Chutzpah Test files 80 | _Chutzpah* 81 | 82 | # Visual C++ cache files 83 | ipch/ 84 | *.aps 85 | *.ncb 86 | *.opendb 87 | *.opensdf 88 | *.sdf 89 | *.cachefile 90 | *.VC.db 91 | *.VC.VC.opendb 92 | 93 | # Visual Studio profiler 94 | *.psess 95 | *.vsp 96 | *.vspx 97 | *.sap 98 | 99 | # TFS 2012 Local Workspace 100 | $tf/ 101 | 102 | # Guidance Automation Toolkit 103 | *.gpState 104 | 105 | # ReSharper is a .NET coding add-in 106 | _ReSharper*/ 107 | *.[Rr]e[Ss]harper 108 | *.DotSettings.user 109 | 110 | # JustCode is a .NET coding add-in 111 | .JustCode 112 | 113 | # TeamCity is a build add-in 114 | _TeamCity* 115 | 116 | # DotCover is a Code Coverage Tool 117 | *.dotCover 118 | 119 | # AxoCover is a Code Coverage Tool 120 | .axoCover/* 121 | !.axoCover/settings.json 122 | 123 | # Visual Studio code coverage results 124 | *.coverage 125 | *.coveragexml 126 | 127 | # NCrunch 128 | _NCrunch_* 129 | .*crunch*.local.xml 130 | nCrunchTemp_* 131 | 132 | # MightyMoose 133 | *.mm.* 134 | AutoTest.Net/ 135 | 136 | # Web workbench (sass) 137 | .sass-cache/ 138 | 139 | # Installshield output folder 140 | [Ee]xpress/ 141 | 142 | # DocProject is a documentation generator add-in 143 | DocProject/buildhelp/ 144 | DocProject/Help/*.HxT 145 | DocProject/Help/*.HxC 146 | DocProject/Help/*.hhc 147 | DocProject/Help/*.hhk 148 | DocProject/Help/*.hhp 149 | DocProject/Help/Html2 150 | DocProject/Help/html 151 | 152 | # Click-Once directory 153 | publish/ 154 | 155 | # Publish Web Output 156 | *.[Pp]ublish.xml 157 | *.azurePubxml 158 | # Note: Comment the next line if you want to checkin your web deploy settings, 159 | # but database connection strings (with potential passwords) will be unencrypted 160 | *.pubxml 161 | *.publishproj 162 | 163 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 164 | # checkin your Azure Web App publish settings, but sensitive information contained 165 | # in these scripts will be unencrypted 166 | PublishScripts/ 167 | 168 | # NuGet Packages 169 | *.nupkg 170 | # The packages folder can be ignored because of Package Restore 171 | **/packages/* 172 | # except build/, which is used as an MSBuild target. 173 | !**/packages/build/ 174 | # Uncomment if necessary however generally it will be regenerated when needed 175 | #!**/packages/repositories.config 176 | # NuGet v3's project.json files produces more ignorable files 177 | *.nuget.props 178 | *.nuget.targets 179 | 180 | # Microsoft Azure Build Output 181 | csx/ 182 | *.build.csdef 183 | 184 | # Microsoft Azure Emulator 185 | ecf/ 186 | rcf/ 187 | 188 | # Windows Store app package directories and files 189 | AppPackages/ 190 | BundleArtifacts/ 191 | Package.StoreAssociation.xml 192 | _pkginfo.txt 193 | *.appx 194 | 195 | # Visual Studio cache files 196 | # files ending in .cache can be ignored 197 | *.[Cc]ache 198 | # but keep track of directories ending in .cache 199 | !*.[Cc]ache/ 200 | 201 | # Others 202 | ClientBin/ 203 | ~$* 204 | *~ 205 | *.dbmdl 206 | *.dbproj.schemaview 207 | *.jfm 208 | *.pfx 209 | *.publishsettings 210 | orleans.codegen.cs 211 | 212 | # Since there are multiple workflows, uncomment next line to ignore bower_components 213 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 214 | #bower_components/ 215 | 216 | # RIA/Silverlight projects 217 | Generated_Code/ 218 | 219 | # Backup & report files from converting an old project file 220 | # to a newer Visual Studio version. Backup files are not needed, 221 | # because we have git ;-) 222 | _UpgradeReport_Files/ 223 | Backup*/ 224 | UpgradeLog*.XML 225 | UpgradeLog*.htm 226 | 227 | # SQL Server files 228 | *.mdf 229 | *.ldf 230 | *.ndf 231 | 232 | # Business Intelligence projects 233 | *.rdl.data 234 | *.bim.layout 235 | *.bim_*.settings 236 | 237 | # Microsoft Fakes 238 | FakesAssemblies/ 239 | 240 | # GhostDoc plugin setting file 241 | *.GhostDoc.xml 242 | 243 | # Node.js Tools for Visual Studio 244 | .ntvs_analysis.dat 245 | node_modules/ 246 | 247 | # Typescript v1 declaration files 248 | typings/ 249 | 250 | # Visual Studio 6 build log 251 | *.plg 252 | 253 | # Visual Studio 6 workspace options file 254 | *.opt 255 | 256 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 257 | *.vbw 258 | 259 | # Visual Studio LightSwitch build output 260 | **/*.HTMLClient/GeneratedArtifacts 261 | **/*.DesktopClient/GeneratedArtifacts 262 | **/*.DesktopClient/ModelManifest.xml 263 | **/*.Server/GeneratedArtifacts 264 | **/*.Server/ModelManifest.xml 265 | _Pvt_Extensions 266 | 267 | # Paket dependency manager 268 | .paket/paket.exe 269 | paket-files/ 270 | 271 | # FAKE - F# Make 272 | .fake/ 273 | 274 | # JetBrains Rider 275 | .idea/ 276 | *.sln.iml 277 | 278 | # CodeRush 279 | .cr/ 280 | 281 | # Python Tools for Visual Studio (PTVS) 282 | __pycache__/ 283 | *.pyc 284 | 285 | # Cake - Uncomment if you are using it 286 | # tools/** 287 | # !tools/packages.config 288 | 289 | # Tabs Studio 290 | *.tss 291 | 292 | # Telerik's JustMock configuration file 293 | *.jmconfig 294 | 295 | # BizTalk build output 296 | *.btp.cs 297 | *.btm.cs 298 | *.odx.cs 299 | *.xsd.cs -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## CTI Text Encryption 2 | 3 | ![CTI Text Encryption](https://github.com/adriancs2/CTI-Text-Encryption/blob/master/documentation/cti_text_encryption_screenshot.png "CTI Text Encryption") 4 | 5 | A text encryption tools. It able to encrypt text, articles, messages into random, meaningless code. And then at a later time, it can be decrypted into original message when needed. 6 | 7 | A simple example: 8 | 9 | Original Text (before encryption): 10 | The quick brown fox jump over the lazy dog. 11 | 12 | Encrypted Text (after encryption): 13 | ga8Ba3jH55sI4eFT0nRBesHoLGLbriXeWomE7vpxbFszJFnSXJRYy1MJoKy+y+krLmdmYxGBhRg3oRDA9OjqemJSZdryFI2b5BjseUnhsC8= 14 | 15 | Decryption Result of the Encrypted Text: 16 | The quick brown fox jump over the lazy dog. 17 | 18 | ### Features: 19 | 20 | - Core Encryption Algorithm: AES (Advanced Encryption Standard or Rijndael) 21 | - Password Hashing Algorithm: SHA512 22 | - Able to encrypt most of the languages in the world. 23 | - Light weight, efficient, protable (no installation needed). 24 | - Able to be encrypted with up to 4 combination of passwords. 25 | - Text is compressed. Encrypted text is shorten. 26 | -------------------------------------------------------------------------------- /documentation/cti_text_encryption_screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adriancs2/CTI-Text-Encryption/37a41f2dde1044ed231ee038618109e3b974aa10/documentation/cti_text_encryption_screenshot.png -------------------------------------------------------------------------------- /source_code/AES256BitExpress.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Security.Cryptography; 5 | using System.IO; 6 | 7 | namespace ctiencrypt 8 | { 9 | class AES256BitExpress 10 | { 11 | private const int _saltSize = 8; 12 | private static byte[] _emptyPasswordBytes = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; 13 | private static SHA512 sha = SHA512.Create(); 14 | 15 | public static string Encrypt(string text, byte[] pwdBytes1, byte[] pwdBytes2, byte[] pwdBytes3, byte[] pwdBytes4) 16 | { 17 | byte[] passwordBytes = CombinePassword(pwdBytes1, pwdBytes2, pwdBytes3, pwdBytes4); 18 | return Encrypt(text, passwordBytes); 19 | } 20 | 21 | public static string Encrypt(string text, byte[] passwordBytes) 22 | { 23 | byte[] originalBytes = Encoding.UTF8.GetBytes(text); 24 | 25 | // Compress the bytes 26 | originalBytes = Compressor.Compress(originalBytes); 27 | 28 | byte[] encryptedBytes = null; 29 | passwordBytes = sha.ComputeHash(passwordBytes); 30 | byte[] saltBytes = GetRandomBytes(); 31 | 32 | byte[] bytesToBeEncrypted = new byte[saltBytes.Length + originalBytes.Length]; 33 | 34 | for (int i = 0; i < saltBytes.Length; i++) 35 | { 36 | bytesToBeEncrypted[i] = saltBytes[i]; 37 | } 38 | 39 | for (int i = 0; i < originalBytes.Length; i++) 40 | { 41 | bytesToBeEncrypted[i + saltBytes.Length] = originalBytes[i]; 42 | } 43 | 44 | encryptedBytes = AES_Encrypt(bytesToBeEncrypted, passwordBytes); 45 | 46 | return Convert.ToBase64String(encryptedBytes); 47 | } 48 | 49 | public static string Decrypt(string decryptedText, byte[] pwdBytes1, byte[] pwdBytes2, byte[] pwdBytes3, byte[] pwdBytes4) 50 | { 51 | byte[] passwordBytes = CombinePassword(pwdBytes1, pwdBytes2, pwdBytes3, pwdBytes4); 52 | return Decrypt(decryptedText, passwordBytes); 53 | } 54 | 55 | public static string Decrypt(string decryptedText, byte[] passwordBytes) 56 | { 57 | byte[] bytesToBeDecrypted = Convert.FromBase64String(decryptedText); 58 | 59 | passwordBytes = sha.ComputeHash(passwordBytes); 60 | 61 | byte[] decryptedBytes = AES_Decrypt(bytesToBeDecrypted, passwordBytes); 62 | 63 | byte[] originalBytes = new byte[decryptedBytes.Length - _saltSize]; 64 | 65 | for (int i = _saltSize; i < decryptedBytes.Length; i++) 66 | { 67 | originalBytes[i - _saltSize] = decryptedBytes[i]; 68 | } 69 | 70 | originalBytes = Compressor.Decompress(originalBytes); 71 | 72 | return Encoding.UTF8.GetString(originalBytes); 73 | } 74 | 75 | public static byte[] AES_Encrypt(byte[] bytesToBeEncrypted, byte[] passwordBytes) 76 | { 77 | byte[] encryptedBytes = null; 78 | byte[] saltBytes = passwordBytes; 79 | 80 | using (MemoryStream ms = new MemoryStream()) 81 | { 82 | using (RijndaelManaged AES = new RijndaelManaged()) 83 | { 84 | AES.KeySize = 256; 85 | AES.BlockSize = 128; 86 | 87 | var key = new Rfc2898DeriveBytes(passwordBytes, saltBytes, 1000); 88 | AES.Key = key.GetBytes(AES.KeySize / 8); 89 | AES.IV = key.GetBytes(AES.BlockSize / 8); 90 | 91 | AES.Mode = CipherMode.CBC; 92 | 93 | using (var cs = new CryptoStream(ms, AES.CreateEncryptor(), CryptoStreamMode.Write)) 94 | { 95 | cs.Write(bytesToBeEncrypted, 0, bytesToBeEncrypted.Length); 96 | cs.Close(); 97 | } 98 | encryptedBytes = ms.ToArray(); 99 | } 100 | } 101 | 102 | return encryptedBytes; 103 | } 104 | 105 | public static byte[] AES_Decrypt(byte[] bytesToBeDecrypted, byte[] passwordBytes) 106 | { 107 | byte[] decryptedBytes = null; 108 | byte[] saltBytes = passwordBytes; 109 | 110 | using (MemoryStream ms = new MemoryStream()) 111 | { 112 | using (RijndaelManaged AES = new RijndaelManaged()) 113 | { 114 | AES.KeySize = 256; 115 | AES.BlockSize = 128; 116 | 117 | var key = new Rfc2898DeriveBytes(passwordBytes, saltBytes, 1000); 118 | AES.Key = key.GetBytes(AES.KeySize / 8); 119 | AES.IV = key.GetBytes(AES.BlockSize / 8); 120 | 121 | AES.Mode = CipherMode.CBC; 122 | 123 | using (var cs = new CryptoStream(ms, AES.CreateDecryptor(), CryptoStreamMode.Write)) 124 | { 125 | cs.Write(bytesToBeDecrypted, 0, bytesToBeDecrypted.Length); 126 | cs.Close(); 127 | } 128 | decryptedBytes = ms.ToArray(); 129 | } 130 | } 131 | 132 | return decryptedBytes; 133 | } 134 | 135 | private static byte[] CombinePassword(byte[] pwdBytes1, byte[] pwdBytes2, byte[] pwdBytes3, byte[] pwdBytes4) 136 | { 137 | List lst = new List(); 138 | 139 | if (pwdBytes1 == null) 140 | lst.AddRange(sha.ComputeHash(_emptyPasswordBytes)); 141 | else 142 | lst.AddRange(sha.ComputeHash(pwdBytes1)); 143 | 144 | if (pwdBytes2 == null) 145 | lst.AddRange(sha.ComputeHash(_emptyPasswordBytes)); 146 | else 147 | lst.AddRange(sha.ComputeHash(pwdBytes2)); 148 | 149 | if (pwdBytes3 == null) 150 | lst.AddRange(sha.ComputeHash(_emptyPasswordBytes)); 151 | else 152 | lst.AddRange(sha.ComputeHash(pwdBytes3)); 153 | 154 | if (pwdBytes4 == null) 155 | lst.AddRange(sha.ComputeHash(_emptyPasswordBytes)); 156 | else 157 | lst.AddRange(sha.ComputeHash(pwdBytes4)); 158 | 159 | return lst.ToArray(); 160 | } 161 | 162 | public static byte[] GetRandomBytes() 163 | { 164 | byte[] ba = new byte[_saltSize]; 165 | RNGCryptoServiceProvider.Create().GetBytes(ba); 166 | return ba; 167 | } 168 | } 169 | } 170 | -------------------------------------------------------------------------------- /source_code/Compressor.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using System.IO.Compression; 3 | 4 | namespace System 5 | { 6 | public class Compressor 7 | { 8 | public static byte[] Compress(byte[] data) 9 | { 10 | MemoryStream output = new MemoryStream(); 11 | using (DeflateStream dstream = new DeflateStream(output, CompressionMode.Compress)) 12 | { 13 | dstream.Write(data, 0, data.Length); 14 | } 15 | return output.ToArray(); 16 | } 17 | 18 | public static byte[] Decompress(byte[] data) 19 | { 20 | MemoryStream input = new MemoryStream(data); 21 | MemoryStream output = new MemoryStream(); 22 | using (DeflateStream dstream = new DeflateStream(input, CompressionMode.Decompress)) 23 | { 24 | dstream.CopyTo(output); 25 | } 26 | return output.ToArray(); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /source_code/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace ctiencrypt 2 | { 3 | partial class Form1 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.components = new System.ComponentModel.Container(); 32 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); 33 | this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel(); 34 | this.btInfo = new System.Windows.Forms.Button(); 35 | this.lbPwd1 = new System.Windows.Forms.Label(); 36 | this.btResetPwd = new System.Windows.Forms.Button(); 37 | this.lbPwd2 = new System.Windows.Forms.Label(); 38 | this.txtPwd4 = new System.Windows.Forms.TextBox(); 39 | this.txtPwd1 = new System.Windows.Forms.TextBox(); 40 | this.txtPwd3 = new System.Windows.Forms.TextBox(); 41 | this.txtPwd2 = new System.Windows.Forms.TextBox(); 42 | this.lbPwd4 = new System.Windows.Forms.Label(); 43 | this.lbPwd3 = new System.Windows.Forms.Label(); 44 | this.btResetAll = new System.Windows.Forms.Button(); 45 | this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); 46 | this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); 47 | this.btDecrypt = new System.Windows.Forms.Button(); 48 | this.btDecryptCopy = new System.Windows.Forms.Button(); 49 | this.btDecryptPaste = new System.Windows.Forms.Button(); 50 | this.btResetDecrypt = new System.Windows.Forms.Button(); 51 | this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); 52 | this.btEncrypt = new System.Windows.Forms.Button(); 53 | this.btNormalCopy = new System.Windows.Forms.Button(); 54 | this.btNormalPaste = new System.Windows.Forms.Button(); 55 | this.btResetNormal = new System.Windows.Forms.Button(); 56 | this.btFont = new System.Windows.Forms.Button(); 57 | this.groupBoxNormal = new System.Windows.Forms.GroupBox(); 58 | this.txtNormalText = new System.Windows.Forms.TextBox(); 59 | this.groupBoxEncrypt = new System.Windows.Forms.GroupBox(); 60 | this.txtEncryptedText = new System.Windows.Forms.TextBox(); 61 | this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); 62 | this.toolTip2 = new System.Windows.Forms.ToolTip(this.components); 63 | this.tableLayoutPanel4.SuspendLayout(); 64 | this.tableLayoutPanel1.SuspendLayout(); 65 | this.flowLayoutPanel2.SuspendLayout(); 66 | this.flowLayoutPanel1.SuspendLayout(); 67 | this.groupBoxNormal.SuspendLayout(); 68 | this.groupBoxEncrypt.SuspendLayout(); 69 | this.SuspendLayout(); 70 | // 71 | // tableLayoutPanel4 72 | // 73 | this.tableLayoutPanel4.AutoSize = true; 74 | this.tableLayoutPanel4.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 75 | this.tableLayoutPanel4.ColumnCount = 7; 76 | this.tableLayoutPanel1.SetColumnSpan(this.tableLayoutPanel4, 2); 77 | this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); 78 | this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); 79 | this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); 80 | this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); 81 | this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); 82 | this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); 83 | this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); 84 | this.tableLayoutPanel4.Controls.Add(this.btInfo, 6, 0); 85 | this.tableLayoutPanel4.Controls.Add(this.lbPwd1, 0, 0); 86 | this.tableLayoutPanel4.Controls.Add(this.btResetPwd, 4, 0); 87 | this.tableLayoutPanel4.Controls.Add(this.lbPwd2, 0, 1); 88 | this.tableLayoutPanel4.Controls.Add(this.txtPwd4, 3, 1); 89 | this.tableLayoutPanel4.Controls.Add(this.txtPwd1, 1, 0); 90 | this.tableLayoutPanel4.Controls.Add(this.txtPwd3, 3, 0); 91 | this.tableLayoutPanel4.Controls.Add(this.txtPwd2, 1, 1); 92 | this.tableLayoutPanel4.Controls.Add(this.lbPwd4, 2, 1); 93 | this.tableLayoutPanel4.Controls.Add(this.lbPwd3, 2, 0); 94 | this.tableLayoutPanel4.Controls.Add(this.btResetAll, 5, 0); 95 | this.tableLayoutPanel4.Location = new System.Drawing.Point(1, 1); 96 | this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(0, 0, 0, 5); 97 | this.tableLayoutPanel4.Name = "tableLayoutPanel4"; 98 | this.tableLayoutPanel4.RowCount = 2; 99 | this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle()); 100 | this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle()); 101 | this.tableLayoutPanel4.Size = new System.Drawing.Size(721, 56); 102 | this.tableLayoutPanel4.TabIndex = 6; 103 | // 104 | // btInfo 105 | // 106 | this.btInfo.Anchor = System.Windows.Forms.AnchorStyles.None; 107 | this.btInfo.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 108 | this.btInfo.Image = global::ctiencrypt.Properties.Resources.info25; 109 | this.btInfo.Location = new System.Drawing.Point(620, 10); 110 | this.btInfo.Margin = new System.Windows.Forms.Padding(5); 111 | this.btInfo.Name = "btInfo"; 112 | this.tableLayoutPanel4.SetRowSpan(this.btInfo, 2); 113 | this.btInfo.Size = new System.Drawing.Size(96, 35); 114 | this.btInfo.TabIndex = 19; 115 | this.btInfo.Text = "Info"; 116 | this.btInfo.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 117 | this.btInfo.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 118 | this.btInfo.UseVisualStyleBackColor = true; 119 | this.btInfo.Click += new System.EventHandler(this.btInfo_Click); 120 | // 121 | // lbPwd1 122 | // 123 | this.lbPwd1.Anchor = System.Windows.Forms.AnchorStyles.None; 124 | this.lbPwd1.AutoSize = true; 125 | this.lbPwd1.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 126 | this.lbPwd1.Location = new System.Drawing.Point(3, 7); 127 | this.lbPwd1.Name = "lbPwd1"; 128 | this.lbPwd1.Size = new System.Drawing.Size(45, 13); 129 | this.lbPwd1.TabIndex = 0; 130 | this.lbPwd1.Text = "lbPwd1"; 131 | // 132 | // btResetPwd 133 | // 134 | this.btResetPwd.Anchor = System.Windows.Forms.AnchorStyles.None; 135 | this.btResetPwd.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 136 | this.btResetPwd.Image = global::ctiencrypt.Properties.Resources.reset25; 137 | this.btResetPwd.Location = new System.Drawing.Point(353, 10); 138 | this.btResetPwd.Margin = new System.Windows.Forms.Padding(5); 139 | this.btResetPwd.Name = "btResetPwd"; 140 | this.tableLayoutPanel4.SetRowSpan(this.btResetPwd, 2); 141 | this.btResetPwd.Size = new System.Drawing.Size(137, 35); 142 | this.btResetPwd.TabIndex = 5; 143 | this.btResetPwd.Text = "Erase Password"; 144 | this.btResetPwd.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 145 | this.btResetPwd.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 146 | this.btResetPwd.UseVisualStyleBackColor = true; 147 | this.btResetPwd.Click += new System.EventHandler(this.btResetPwd_Click); 148 | // 149 | // lbPwd2 150 | // 151 | this.lbPwd2.Anchor = System.Windows.Forms.AnchorStyles.None; 152 | this.lbPwd2.AutoSize = true; 153 | this.lbPwd2.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 154 | this.lbPwd2.Location = new System.Drawing.Point(3, 35); 155 | this.lbPwd2.Name = "lbPwd2"; 156 | this.lbPwd2.Size = new System.Drawing.Size(45, 13); 157 | this.lbPwd2.TabIndex = 3; 158 | this.lbPwd2.Text = "lbPwd2"; 159 | // 160 | // txtPwd4 161 | // 162 | this.txtPwd4.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 163 | this.txtPwd4.Location = new System.Drawing.Point(228, 31); 164 | this.txtPwd4.Name = "txtPwd4"; 165 | this.txtPwd4.PasswordChar = '*'; 166 | this.txtPwd4.Size = new System.Drawing.Size(117, 22); 167 | this.txtPwd4.TabIndex = 4; 168 | this.txtPwd4.UseSystemPasswordChar = true; 169 | // 170 | // txtPwd1 171 | // 172 | this.txtPwd1.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 173 | this.txtPwd1.Location = new System.Drawing.Point(54, 3); 174 | this.txtPwd1.Name = "txtPwd1"; 175 | this.txtPwd1.PasswordChar = '*'; 176 | this.txtPwd1.Size = new System.Drawing.Size(117, 22); 177 | this.txtPwd1.TabIndex = 1; 178 | this.txtPwd1.UseSystemPasswordChar = true; 179 | // 180 | // txtPwd3 181 | // 182 | this.txtPwd3.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 183 | this.txtPwd3.Location = new System.Drawing.Point(228, 3); 184 | this.txtPwd3.Name = "txtPwd3"; 185 | this.txtPwd3.PasswordChar = '*'; 186 | this.txtPwd3.Size = new System.Drawing.Size(117, 22); 187 | this.txtPwd3.TabIndex = 3; 188 | this.txtPwd3.UseSystemPasswordChar = true; 189 | // 190 | // txtPwd2 191 | // 192 | this.txtPwd2.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 193 | this.txtPwd2.Location = new System.Drawing.Point(54, 31); 194 | this.txtPwd2.Name = "txtPwd2"; 195 | this.txtPwd2.PasswordChar = '*'; 196 | this.txtPwd2.Size = new System.Drawing.Size(117, 22); 197 | this.txtPwd2.TabIndex = 2; 198 | this.txtPwd2.UseSystemPasswordChar = true; 199 | // 200 | // lbPwd4 201 | // 202 | this.lbPwd4.Anchor = System.Windows.Forms.AnchorStyles.None; 203 | this.lbPwd4.AutoSize = true; 204 | this.lbPwd4.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 205 | this.lbPwd4.Location = new System.Drawing.Point(177, 35); 206 | this.lbPwd4.Name = "lbPwd4"; 207 | this.lbPwd4.Size = new System.Drawing.Size(45, 13); 208 | this.lbPwd4.TabIndex = 5; 209 | this.lbPwd4.Text = "lbPwd4"; 210 | // 211 | // lbPwd3 212 | // 213 | this.lbPwd3.Anchor = System.Windows.Forms.AnchorStyles.None; 214 | this.lbPwd3.AutoSize = true; 215 | this.lbPwd3.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 216 | this.lbPwd3.Location = new System.Drawing.Point(177, 7); 217 | this.lbPwd3.Name = "lbPwd3"; 218 | this.lbPwd3.Size = new System.Drawing.Size(45, 13); 219 | this.lbPwd3.TabIndex = 4; 220 | this.lbPwd3.Text = "lbPwd3"; 221 | // 222 | // btResetAll 223 | // 224 | this.btResetAll.Anchor = System.Windows.Forms.AnchorStyles.None; 225 | this.btResetAll.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 226 | this.btResetAll.Image = global::ctiencrypt.Properties.Resources.reset25; 227 | this.btResetAll.Location = new System.Drawing.Point(500, 10); 228 | this.btResetAll.Margin = new System.Windows.Forms.Padding(5); 229 | this.btResetAll.Name = "btResetAll"; 230 | this.tableLayoutPanel4.SetRowSpan(this.btResetAll, 2); 231 | this.btResetAll.Size = new System.Drawing.Size(110, 35); 232 | this.btResetAll.TabIndex = 18; 233 | this.btResetAll.Text = "Erase All"; 234 | this.btResetAll.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 235 | this.btResetAll.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 236 | this.btResetAll.UseVisualStyleBackColor = true; 237 | this.btResetAll.Click += new System.EventHandler(this.btResetAll_Click); 238 | // 239 | // tableLayoutPanel1 240 | // 241 | this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single; 242 | this.tableLayoutPanel1.ColumnCount = 2; 243 | this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); 244 | this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F)); 245 | this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel2, 1, 2); 246 | this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel1, 1, 1); 247 | this.tableLayoutPanel1.Controls.Add(this.groupBoxNormal, 0, 1); 248 | this.tableLayoutPanel1.Controls.Add(this.groupBoxEncrypt, 0, 2); 249 | this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel4, 0, 0); 250 | this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; 251 | this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); 252 | this.tableLayoutPanel1.Name = "tableLayoutPanel1"; 253 | this.tableLayoutPanel1.RowCount = 3; 254 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); 255 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); 256 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 184F)); 257 | this.tableLayoutPanel1.Size = new System.Drawing.Size(884, 561); 258 | this.tableLayoutPanel1.TabIndex = 7; 259 | // 260 | // flowLayoutPanel2 261 | // 262 | this.flowLayoutPanel2.Controls.Add(this.btDecrypt); 263 | this.flowLayoutPanel2.Controls.Add(this.btDecryptCopy); 264 | this.flowLayoutPanel2.Controls.Add(this.btDecryptPaste); 265 | this.flowLayoutPanel2.Controls.Add(this.btResetDecrypt); 266 | this.flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; 267 | this.flowLayoutPanel2.Location = new System.Drawing.Point(786, 379); 268 | this.flowLayoutPanel2.Name = "flowLayoutPanel2"; 269 | this.flowLayoutPanel2.Size = new System.Drawing.Size(94, 178); 270 | this.flowLayoutPanel2.TabIndex = 14; 271 | // 272 | // btDecrypt 273 | // 274 | this.btDecrypt.Anchor = System.Windows.Forms.AnchorStyles.Left; 275 | this.btDecrypt.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 276 | this.btDecrypt.Image = global::ctiencrypt.Properties.Resources.btDecrypt; 277 | this.btDecrypt.Location = new System.Drawing.Point(3, 3); 278 | this.btDecrypt.Name = "btDecrypt"; 279 | this.btDecrypt.Size = new System.Drawing.Size(85, 35); 280 | this.btDecrypt.TabIndex = 13; 281 | this.btDecrypt.Text = "Decrypt"; 282 | this.btDecrypt.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 283 | this.btDecrypt.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 284 | this.btDecrypt.UseVisualStyleBackColor = true; 285 | this.btDecrypt.Click += new System.EventHandler(this.btDecrypt_Click); 286 | // 287 | // btDecryptCopy 288 | // 289 | this.btDecryptCopy.Anchor = System.Windows.Forms.AnchorStyles.None; 290 | this.btDecryptCopy.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 291 | this.btDecryptCopy.Image = global::ctiencrypt.Properties.Resources.copy24; 292 | this.btDecryptCopy.Location = new System.Drawing.Point(3, 44); 293 | this.btDecryptCopy.Name = "btDecryptCopy"; 294 | this.btDecryptCopy.Size = new System.Drawing.Size(85, 35); 295 | this.btDecryptCopy.TabIndex = 14; 296 | this.btDecryptCopy.Text = "Copy"; 297 | this.btDecryptCopy.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 298 | this.btDecryptCopy.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 299 | this.btDecryptCopy.UseVisualStyleBackColor = true; 300 | this.btDecryptCopy.Click += new System.EventHandler(this.btDecryptCopy_Click); 301 | // 302 | // btDecryptPaste 303 | // 304 | this.btDecryptPaste.Anchor = System.Windows.Forms.AnchorStyles.None; 305 | this.btDecryptPaste.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 306 | this.btDecryptPaste.Image = global::ctiencrypt.Properties.Resources.paste24; 307 | this.btDecryptPaste.Location = new System.Drawing.Point(3, 85); 308 | this.btDecryptPaste.Name = "btDecryptPaste"; 309 | this.btDecryptPaste.Size = new System.Drawing.Size(85, 35); 310 | this.btDecryptPaste.TabIndex = 16; 311 | this.btDecryptPaste.Text = "Paste"; 312 | this.btDecryptPaste.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 313 | this.btDecryptPaste.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 314 | this.btDecryptPaste.UseVisualStyleBackColor = true; 315 | this.btDecryptPaste.Click += new System.EventHandler(this.btDecryptPaste_Click); 316 | // 317 | // btResetDecrypt 318 | // 319 | this.btResetDecrypt.Anchor = System.Windows.Forms.AnchorStyles.None; 320 | this.btResetDecrypt.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 321 | this.btResetDecrypt.Image = global::ctiencrypt.Properties.Resources.reset25; 322 | this.btResetDecrypt.Location = new System.Drawing.Point(3, 126); 323 | this.btResetDecrypt.Name = "btResetDecrypt"; 324 | this.btResetDecrypt.Size = new System.Drawing.Size(85, 35); 325 | this.btResetDecrypt.TabIndex = 17; 326 | this.btResetDecrypt.Text = "Erase"; 327 | this.btResetDecrypt.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 328 | this.btResetDecrypt.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 329 | this.btResetDecrypt.UseVisualStyleBackColor = true; 330 | this.btResetDecrypt.Click += new System.EventHandler(this.btResetDecrypt_Click); 331 | // 332 | // flowLayoutPanel1 333 | // 334 | this.flowLayoutPanel1.Controls.Add(this.btEncrypt); 335 | this.flowLayoutPanel1.Controls.Add(this.btNormalCopy); 336 | this.flowLayoutPanel1.Controls.Add(this.btNormalPaste); 337 | this.flowLayoutPanel1.Controls.Add(this.btResetNormal); 338 | this.flowLayoutPanel1.Controls.Add(this.btFont); 339 | this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; 340 | this.flowLayoutPanel1.Location = new System.Drawing.Point(786, 66); 341 | this.flowLayoutPanel1.Name = "flowLayoutPanel1"; 342 | this.flowLayoutPanel1.Size = new System.Drawing.Size(94, 306); 343 | this.flowLayoutPanel1.TabIndex = 12; 344 | // 345 | // btEncrypt 346 | // 347 | this.btEncrypt.Anchor = System.Windows.Forms.AnchorStyles.None; 348 | this.btEncrypt.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 349 | this.btEncrypt.Image = global::ctiencrypt.Properties.Resources.btEncrypt; 350 | this.btEncrypt.Location = new System.Drawing.Point(3, 3); 351 | this.btEncrypt.Name = "btEncrypt"; 352 | this.btEncrypt.Size = new System.Drawing.Size(85, 35); 353 | this.btEncrypt.TabIndex = 7; 354 | this.btEncrypt.Text = "Encrypt"; 355 | this.btEncrypt.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 356 | this.btEncrypt.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 357 | this.btEncrypt.UseVisualStyleBackColor = true; 358 | this.btEncrypt.Click += new System.EventHandler(this.btEncrypt_Click); 359 | // 360 | // btNormalCopy 361 | // 362 | this.btNormalCopy.Anchor = System.Windows.Forms.AnchorStyles.None; 363 | this.btNormalCopy.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 364 | this.btNormalCopy.Image = global::ctiencrypt.Properties.Resources.copy24; 365 | this.btNormalCopy.Location = new System.Drawing.Point(3, 44); 366 | this.btNormalCopy.Name = "btNormalCopy"; 367 | this.btNormalCopy.Size = new System.Drawing.Size(85, 35); 368 | this.btNormalCopy.TabIndex = 8; 369 | this.btNormalCopy.Text = "Copy"; 370 | this.btNormalCopy.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 371 | this.btNormalCopy.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 372 | this.btNormalCopy.UseVisualStyleBackColor = true; 373 | this.btNormalCopy.Click += new System.EventHandler(this.btNormalCopy_Click); 374 | // 375 | // btNormalPaste 376 | // 377 | this.btNormalPaste.Anchor = System.Windows.Forms.AnchorStyles.None; 378 | this.btNormalPaste.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 379 | this.btNormalPaste.Image = global::ctiencrypt.Properties.Resources.paste24; 380 | this.btNormalPaste.Location = new System.Drawing.Point(3, 85); 381 | this.btNormalPaste.Name = "btNormalPaste"; 382 | this.btNormalPaste.Size = new System.Drawing.Size(85, 35); 383 | this.btNormalPaste.TabIndex = 10; 384 | this.btNormalPaste.Text = "Paste"; 385 | this.btNormalPaste.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 386 | this.btNormalPaste.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 387 | this.btNormalPaste.UseVisualStyleBackColor = true; 388 | this.btNormalPaste.Click += new System.EventHandler(this.btNormalPaste_Click); 389 | // 390 | // btResetNormal 391 | // 392 | this.btResetNormal.Anchor = System.Windows.Forms.AnchorStyles.None; 393 | this.btResetNormal.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 394 | this.btResetNormal.Image = global::ctiencrypt.Properties.Resources.reset25; 395 | this.btResetNormal.Location = new System.Drawing.Point(3, 126); 396 | this.btResetNormal.Name = "btResetNormal"; 397 | this.btResetNormal.Size = new System.Drawing.Size(85, 35); 398 | this.btResetNormal.TabIndex = 11; 399 | this.btResetNormal.Text = "Erase"; 400 | this.btResetNormal.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 401 | this.btResetNormal.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 402 | this.btResetNormal.UseVisualStyleBackColor = true; 403 | this.btResetNormal.Click += new System.EventHandler(this.btResetNormal_Click); 404 | // 405 | // btFont 406 | // 407 | this.btFont.Anchor = System.Windows.Forms.AnchorStyles.None; 408 | this.btFont.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 409 | this.btFont.Image = global::ctiencrypt.Properties.Resources.buttonFont; 410 | this.btFont.Location = new System.Drawing.Point(3, 167); 411 | this.btFont.Name = "btFont"; 412 | this.btFont.Size = new System.Drawing.Size(85, 35); 413 | this.btFont.TabIndex = 12; 414 | this.btFont.Text = "Font"; 415 | this.btFont.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 416 | this.btFont.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 417 | this.btFont.UseVisualStyleBackColor = true; 418 | this.btFont.Click += new System.EventHandler(this.btFont_Click); 419 | // 420 | // groupBoxNormal 421 | // 422 | this.groupBoxNormal.Controls.Add(this.txtNormalText); 423 | this.groupBoxNormal.Dock = System.Windows.Forms.DockStyle.Fill; 424 | this.groupBoxNormal.Location = new System.Drawing.Point(4, 66); 425 | this.groupBoxNormal.Name = "groupBoxNormal"; 426 | this.groupBoxNormal.Size = new System.Drawing.Size(775, 306); 427 | this.groupBoxNormal.TabIndex = 2; 428 | this.groupBoxNormal.TabStop = false; 429 | this.groupBoxNormal.Text = "Normal Text. Length: 0"; 430 | // 431 | // txtNormalText 432 | // 433 | this.txtNormalText.Dock = System.Windows.Forms.DockStyle.Fill; 434 | this.txtNormalText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 435 | this.txtNormalText.Location = new System.Drawing.Point(3, 16); 436 | this.txtNormalText.MaxLength = 2147483647; 437 | this.txtNormalText.Multiline = true; 438 | this.txtNormalText.Name = "txtNormalText"; 439 | this.txtNormalText.ScrollBars = System.Windows.Forms.ScrollBars.Both; 440 | this.txtNormalText.Size = new System.Drawing.Size(769, 287); 441 | this.txtNormalText.TabIndex = 6; 442 | this.txtNormalText.WordWrap = false; 443 | this.txtNormalText.TextChanged += new System.EventHandler(this.txtNormalText_TextChanged); 444 | this.txtNormalText.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtNormalText_KeyDown); 445 | // 446 | // groupBoxEncrypt 447 | // 448 | this.groupBoxEncrypt.Controls.Add(this.txtEncryptedText); 449 | this.groupBoxEncrypt.Dock = System.Windows.Forms.DockStyle.Fill; 450 | this.groupBoxEncrypt.Location = new System.Drawing.Point(4, 379); 451 | this.groupBoxEncrypt.Name = "groupBoxEncrypt"; 452 | this.groupBoxEncrypt.Size = new System.Drawing.Size(775, 178); 453 | this.groupBoxEncrypt.TabIndex = 4; 454 | this.groupBoxEncrypt.TabStop = false; 455 | this.groupBoxEncrypt.Text = "Encrypted Text. Length: 0"; 456 | // 457 | // txtEncryptedText 458 | // 459 | this.txtEncryptedText.BackColor = System.Drawing.Color.OldLace; 460 | this.txtEncryptedText.Dock = System.Windows.Forms.DockStyle.Fill; 461 | this.txtEncryptedText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 462 | this.txtEncryptedText.Location = new System.Drawing.Point(3, 16); 463 | this.txtEncryptedText.MaxLength = 2147483647; 464 | this.txtEncryptedText.Multiline = true; 465 | this.txtEncryptedText.Name = "txtEncryptedText"; 466 | this.txtEncryptedText.ScrollBars = System.Windows.Forms.ScrollBars.Both; 467 | this.txtEncryptedText.Size = new System.Drawing.Size(769, 159); 468 | this.txtEncryptedText.TabIndex = 12; 469 | this.txtEncryptedText.WordWrap = false; 470 | this.txtEncryptedText.TextChanged += new System.EventHandler(this.txtEncryptedText_TextChanged); 471 | this.txtEncryptedText.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtEncryptedText_KeyDown); 472 | // 473 | // toolTip2 474 | // 475 | this.toolTip2.IsBalloon = true; 476 | // 477 | // Form1 478 | // 479 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; 480 | this.ClientSize = new System.Drawing.Size(884, 561); 481 | this.Controls.Add(this.tableLayoutPanel1); 482 | this.Font = new System.Drawing.Font("Segoe UI", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 483 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 484 | this.MinimumSize = new System.Drawing.Size(550, 405); 485 | this.Name = "Form1"; 486 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 487 | this.Text = "CTI Text Encryption"; 488 | this.tableLayoutPanel4.ResumeLayout(false); 489 | this.tableLayoutPanel4.PerformLayout(); 490 | this.tableLayoutPanel1.ResumeLayout(false); 491 | this.tableLayoutPanel1.PerformLayout(); 492 | this.flowLayoutPanel2.ResumeLayout(false); 493 | this.flowLayoutPanel1.ResumeLayout(false); 494 | this.groupBoxNormal.ResumeLayout(false); 495 | this.groupBoxNormal.PerformLayout(); 496 | this.groupBoxEncrypt.ResumeLayout(false); 497 | this.groupBoxEncrypt.PerformLayout(); 498 | this.ResumeLayout(false); 499 | 500 | } 501 | 502 | #endregion 503 | 504 | private System.Windows.Forms.TextBox txtPwd2; 505 | private System.Windows.Forms.TextBox txtPwd1; 506 | private System.Windows.Forms.Label lbPwd1; 507 | private System.Windows.Forms.TextBox txtPwd4; 508 | private System.Windows.Forms.TextBox txtPwd3; 509 | private System.Windows.Forms.Label lbPwd4; 510 | private System.Windows.Forms.Label lbPwd3; 511 | private System.Windows.Forms.Label lbPwd2; 512 | private System.Windows.Forms.Button btResetPwd; 513 | private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; 514 | private System.Windows.Forms.GroupBox groupBoxNormal; 515 | private System.Windows.Forms.TextBox txtNormalText; 516 | private System.Windows.Forms.GroupBox groupBoxEncrypt; 517 | private System.Windows.Forms.TextBox txtEncryptedText; 518 | private System.Windows.Forms.Button btInfo; 519 | private System.Windows.Forms.Button btResetAll; 520 | private System.Windows.Forms.Button btEncrypt; 521 | private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; 522 | private System.Windows.Forms.Button btNormalCopy; 523 | private System.Windows.Forms.Button btNormalPaste; 524 | private System.Windows.Forms.Button btResetNormal; 525 | private System.Windows.Forms.Button btDecrypt; 526 | private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2; 527 | private System.Windows.Forms.Button btDecryptCopy; 528 | private System.Windows.Forms.Button btDecryptPaste; 529 | private System.Windows.Forms.Button btResetDecrypt; 530 | private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4; 531 | private System.Windows.Forms.ToolTip toolTip1; 532 | private System.Windows.Forms.ToolTip toolTip2; 533 | private System.Windows.Forms.Button btFont; 534 | } 535 | } 536 | 537 | -------------------------------------------------------------------------------- /source_code/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Text; 7 | using System.Windows.Forms; 8 | using System.Runtime.Serialization.Formatters.Binary; 9 | using System.IO; 10 | 11 | namespace ctiencrypt 12 | { 13 | public partial class Form1 : Form 14 | { 15 | BackgroundWorker bwEncrypt = new BackgroundWorker(); 16 | BackgroundWorker bwDecrypt = new BackgroundWorker(); 17 | 18 | string normalText = ""; 19 | string encryptedText = ""; 20 | 21 | bool success = true; 22 | string timeUsed = ""; 23 | 24 | public Form1() 25 | { 26 | InitializeComponent(); 27 | 28 | txtNormalText.MaxLength = int.MaxValue; 29 | txtEncryptedText.MaxLength = int.MaxValue; 30 | 31 | // Change UI Language here 32 | SetUILanguage(); 33 | 34 | SetToolTip(); 35 | 36 | // An universal font that can display all languages in the world 37 | LoadEmbededFont(); 38 | 39 | bwEncrypt.DoWork += bwEncrypt_DoWork; 40 | bwEncrypt.RunWorkerCompleted += bwEncrypt_RunWorkerCompleted; 41 | 42 | bwDecrypt.DoWork += bwDecrypt_DoWork; 43 | bwDecrypt.RunWorkerCompleted += bwDecrypt_RunWorkerCompleted; 44 | } 45 | 46 | #region UI Language 47 | 48 | void SetUILanguage() 49 | { 50 | this.Text = Language.CTITextEncryption + " " + config.Version; 51 | lbPwd1.Text = Language.Pwd1; 52 | lbPwd2.Text = Language.Pwd2; 53 | lbPwd3.Text = Language.Pwd3; 54 | lbPwd4.Text = Language.Pwd4; 55 | 56 | btResetPwd.Text = Language.ButtonErasePwd; 57 | btResetAll.Text = Language.ButtonEraseAll; 58 | btInfo.Text = Language.ButtonInfo; 59 | 60 | btEncrypt.Text = Language.ButtonEncrypt; 61 | btNormalCopy.Text = Language.ButtonCopy; 62 | btNormalPaste.Text = Language.ButtonPaste; 63 | btResetNormal.Text = Language.ButtonErase; 64 | btFont.Text = Language.ButtonFont; 65 | 66 | btDecrypt.Text = Language.ButtonDecrypt; 67 | btDecryptCopy.Text = Language.ButtonCopy; 68 | btDecryptPaste.Text = Language.ButtonPaste; 69 | btResetDecrypt.Text = Language.ButtonErase; 70 | 71 | txtNormalText_TextChanged(this, null); 72 | txtEncryptedText_TextChanged(this, null); 73 | } 74 | 75 | void SetToolTip() 76 | { 77 | toolTip1.SetToolTip(btResetPwd, Language.TooltipResetPwd); 78 | toolTip1.SetToolTip(btResetAll, Language.TooltipResetAll); 79 | toolTip1.SetToolTip(btInfo, Language.TooltipInformation); 80 | 81 | toolTip1.SetToolTip(btEncrypt, Language.TooltipEncrypt); 82 | toolTip1.SetToolTip(btNormalCopy, Language.TooltipCopyTxtNormal); 83 | toolTip1.SetToolTip(btNormalPaste, Language.TooltipPasteTxtNormal); 84 | toolTip1.SetToolTip(btResetNormal, Language.TooltipResetTxtNormal); 85 | toolTip1.SetToolTip(btFont, Language.TooltipChangeFont); 86 | 87 | toolTip1.SetToolTip(btDecrypt, Language.TooltipDecrypt); 88 | toolTip1.SetToolTip(btDecryptCopy, Language.TooltipCopyTxtEncrypted); 89 | toolTip1.SetToolTip(btDecryptPaste, Language.TooltipPasteTxtEncrypted); 90 | toolTip1.SetToolTip(btResetDecrypt, Language.TooltipResetTxtEncrypted); 91 | } 92 | 93 | #endregion 94 | 95 | #region Font Settings 96 | 97 | void LoadEmbededFont() 98 | { 99 | if (config.FontSegoeUI.Families.Length == 0) 100 | { 101 | try 102 | { 103 | unsafe 104 | { 105 | fixed (byte* pFontData = Properties.Resources.segoeui) 106 | { 107 | uint dummy = 0; 108 | config.FontSegoeUI.AddMemoryFont((IntPtr)pFontData, Properties.Resources.segoeui.Length); 109 | config.AddFontMemResourceEx((IntPtr)pFontData, (uint)Properties.Resources.segoeui.Length, IntPtr.Zero, ref dummy); 110 | } 111 | } 112 | } 113 | catch 114 | { } 115 | } 116 | 117 | this.Font = new Font(config.FontSegoeUI.Families[0], 7); 118 | txtEncryptedText.Font = new Font(config.FontSegoeUI.Families[0], 10); 119 | 120 | LoadNormalTextFontSettings(); 121 | } 122 | 123 | private void btFont_Click(object sender, EventArgs e) 124 | { 125 | FontDialog f = new FontDialog(); 126 | if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) 127 | { 128 | txtNormalText.Font = f.Font; 129 | RecordLastUsedFont(); 130 | } 131 | } 132 | 133 | void LoadNormalTextFontSettings() 134 | { 135 | bool fontOk = false; 136 | try 137 | { 138 | string file = Path.Combine(Environment.CurrentDirectory, "FontSettings"); 139 | 140 | if (File.Exists(file)) 141 | { 142 | byte[] ba = File.ReadAllBytes(file); 143 | Font font = (Font)ConvertByteArrayToObject(ba); 144 | this.txtNormalText.Font = font; 145 | fontOk = true; 146 | } 147 | } 148 | catch 149 | { 150 | fontOk = false; 151 | } 152 | 153 | if (!fontOk) 154 | { 155 | txtNormalText.Font = new Font(config.FontSegoeUI.Families[0], 10); 156 | } 157 | } 158 | 159 | void RecordLastUsedFont() 160 | { 161 | try 162 | { 163 | string file = Path.Combine(Environment.CurrentDirectory, "FontSettings"); 164 | byte[] ba = ConvertObjectToByteArray(txtNormalText.Font); 165 | 166 | File.WriteAllBytes(file, ba); 167 | } 168 | catch 169 | { } 170 | } 171 | 172 | byte[] ConvertObjectToByteArray(object ob) 173 | { 174 | if (ob == null) 175 | return null; 176 | 177 | BinaryFormatter bf = new BinaryFormatter(); 178 | MemoryStream ms = new MemoryStream(); 179 | bf.Serialize(ms, ob); 180 | return ms.ToArray(); 181 | } 182 | 183 | object ConvertByteArrayToObject(byte[] ba) 184 | { 185 | if (ba == null) 186 | return null; 187 | 188 | BinaryFormatter bf = new BinaryFormatter(); 189 | Stream stream = new MemoryStream(ba); 190 | return bf.Deserialize(stream); 191 | } 192 | 193 | #endregion 194 | 195 | #region Encrypt 196 | 197 | private void btEncrypt_Click(object sender, EventArgs e) 198 | { 199 | try 200 | { 201 | GC.Collect(); 202 | if (txtNormalText.Text.Trim().Length == 0) 203 | { 204 | toolTip2.Show(Language.MsgNormalTextIsEmpty, groupBoxNormal, txtNormalText.Location.X + 50, txtNormalText.Location.Y + 10, 2000); 205 | txtEncryptedText.Clear(); 206 | return; 207 | } 208 | 209 | btEncrypt.Visible = false; 210 | btDecrypt.Visible = false; 211 | btEncrypt.Refresh(); 212 | btDecrypt.Refresh(); 213 | 214 | bwEncrypt.RunWorkerAsync(); 215 | } 216 | catch (Exception ex) 217 | { 218 | MessageBox.Show(ex.Message, "Error"); 219 | } 220 | } 221 | 222 | void bwEncrypt_DoWork(object sender, DoWorkEventArgs e) 223 | { 224 | try 225 | { 226 | DateTime timeStart = DateTime.Now; 227 | byte[] pwdBytes1 = Encoding.UTF8.GetBytes(txtPwd1.Text); 228 | byte[] pwdBytes2 = Encoding.UTF8.GetBytes(txtPwd2.Text); 229 | byte[] pwdBytes3 = Encoding.UTF8.GetBytes(txtPwd3.Text); 230 | byte[] pwdBytes4 = Encoding.UTF8.GetBytes(txtPwd4.Text); 231 | 232 | encryptedText = AES256BitExpress.Encrypt(txtNormalText.Text, pwdBytes1, pwdBytes2, pwdBytes3, pwdBytes4); 233 | 234 | DateTime timeEnd = DateTime.Now; 235 | TimeSpan timeElased = timeEnd - timeStart; 236 | timeUsed = string.Format(" (Encryption Time: = {0} milliseconds)", timeElased.TotalMilliseconds); 237 | } 238 | catch 239 | { 240 | MessageBox.Show(Language.ErrorEncryptFailDescription, Language.ErrorEncryptFail, MessageBoxButtons.OK, MessageBoxIcon.Error); 241 | } 242 | } 243 | 244 | void bwEncrypt_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) 245 | { 246 | try 247 | { 248 | this.SuspendLayout(); 249 | txtEncryptedText.Text = encryptedText; 250 | this.ResumeLayout(); 251 | this.PerformLayout(); 252 | } 253 | catch 254 | { 255 | MessageBox.Show(Language.ErrorEncryptFailDescription, Language.ErrorEncryptFail, MessageBoxButtons.OK, MessageBoxIcon.Error); 256 | } 257 | btEncrypt.Visible = true; 258 | btDecrypt.Visible = true; 259 | } 260 | 261 | #endregion 262 | 263 | #region Decrypt 264 | 265 | private void btDecrypt_Click(object sender, EventArgs e) 266 | { 267 | try 268 | { 269 | GC.Collect(); 270 | if (txtEncryptedText.Text.Trim().Length == 0) 271 | { 272 | toolTip2.Show(Language.MsgEncryptedTextIsEmpty, groupBoxEncrypt, txtEncryptedText.Location.X + 50, txtEncryptedText.Location.Y + 10, 2000); 273 | return; 274 | } 275 | 276 | btEncrypt.Visible = false; 277 | btDecrypt.Visible = false; 278 | btEncrypt.Refresh(); 279 | btDecrypt.Refresh(); 280 | 281 | bwDecrypt.RunWorkerAsync(); 282 | } 283 | catch (Exception ex) 284 | { 285 | MessageBox.Show(ex.Message, "Error"); 286 | } 287 | } 288 | 289 | void bwDecrypt_DoWork(object sender, DoWorkEventArgs e) 290 | { 291 | try 292 | { 293 | DateTime timeStart = DateTime.Now; 294 | byte[] pwdBytes1 = Encoding.UTF8.GetBytes(txtPwd1.Text); 295 | byte[] pwdBytes2 = Encoding.UTF8.GetBytes(txtPwd2.Text); 296 | byte[] pwdBytes3 = Encoding.UTF8.GetBytes(txtPwd3.Text); 297 | byte[] pwdBytes4 = Encoding.UTF8.GetBytes(txtPwd4.Text); 298 | 299 | normalText = AES256BitExpress.Decrypt(txtEncryptedText.Text, pwdBytes1, pwdBytes2, pwdBytes3, pwdBytes4); 300 | 301 | DateTime timeEnd = DateTime.Now; 302 | TimeSpan timeElased = timeEnd - timeStart; 303 | timeUsed = string.Format(" (Decryption Time: = {0} milliseconds)", timeElased.TotalMilliseconds); 304 | 305 | success = true; 306 | } 307 | catch 308 | { 309 | success = false; 310 | 311 | MessageBox.Show(Language.ErrorWrongPassword, Language.ErrorDecryptionFail, MessageBoxButtons.OK, MessageBoxIcon.Warning); 312 | } 313 | } 314 | 315 | void bwDecrypt_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) 316 | { 317 | if (success) 318 | { 319 | this.SuspendLayout(); 320 | txtNormalText.Text = normalText; 321 | this.ResumeLayout(); 322 | this.PerformLayout(); 323 | } 324 | btEncrypt.Visible = true; 325 | btDecrypt.Visible = true; 326 | } 327 | 328 | #endregion 329 | 330 | #region Reset / Clear Textbox 331 | 332 | private void btResetAll_Click(object sender, EventArgs e) 333 | { 334 | btResetNormal.PerformClick(); 335 | btResetPwd.PerformClick(); 336 | btResetDecrypt.PerformClick(); 337 | } 338 | 339 | private void btResetPwd_Click(object sender, EventArgs e) 340 | { 341 | txtPwd1.Clear(); 342 | txtPwd2.Clear(); 343 | txtPwd3.Clear(); 344 | txtPwd4.Clear(); 345 | } 346 | 347 | private void btResetNormal_Click(object sender, EventArgs e) 348 | { 349 | txtNormalText.Clear(); 350 | } 351 | 352 | private void btResetDecrypt_Click(object sender, EventArgs e) 353 | { 354 | txtEncryptedText.Clear(); 355 | } 356 | 357 | #endregion 358 | 359 | #region Copy, Paste 360 | 361 | private void btNormalCopy_Click(object sender, EventArgs e) 362 | { 363 | CopyToClipboard(txtNormalText); 364 | } 365 | 366 | private void btNormalPaste_Click(object sender, EventArgs e) 367 | { 368 | PasteToTextBox(txtNormalText); 369 | } 370 | 371 | private void btDecryptCopy_Click(object sender, EventArgs e) 372 | { 373 | CopyToClipboard(txtEncryptedText); 374 | } 375 | 376 | private void btDecryptPaste_Click(object sender, EventArgs e) 377 | { 378 | PasteToTextBox(txtEncryptedText); 379 | } 380 | 381 | void CopyToClipboard(TextBox textBox) 382 | { 383 | int trycount = 0; 384 | while (trycount < 3) 385 | { 386 | trycount += 1; 387 | try 388 | { 389 | Clipboard.Clear(); 390 | Clipboard.SetDataObject(textBox.Text, true); 391 | return; 392 | } 393 | catch { } 394 | } 395 | MessageBox.Show(Language.ErrorCopy, Language.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); 396 | } 397 | 398 | void PasteToTextBox(TextBox textBox) 399 | { 400 | try 401 | { 402 | this.SuspendLayout(); 403 | int i = textBox.SelectionStart; 404 | string clipboardText = Clipboard.GetText(TextDataFormat.UnicodeText); 405 | textBox.Text = textBox.Text.Insert(i, clipboardText); 406 | textBox.SelectionStart = i + clipboardText.Length; 407 | textBox.SelectionLength = 0; 408 | textBox.ScrollToCaret(); 409 | textBox.Focus(); 410 | this.ResumeLayout(); 411 | this.PerformLayout(); 412 | } 413 | catch 414 | { 415 | MessageBox.Show(Language.ErrorPaste, Language.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); 416 | } 417 | } 418 | 419 | #endregion 420 | 421 | #region Misc 422 | 423 | private void btInfo_Click(object sender, EventArgs e) 424 | { 425 | FormAbout f = new FormAbout(); 426 | f.ShowDialog(); 427 | } 428 | 429 | private void txtNormalText_KeyDown(object sender, KeyEventArgs e) 430 | { 431 | if (e.Control && e.KeyCode == Keys.A) 432 | { 433 | txtNormalText.SelectAll(); 434 | e.Handled = true; 435 | } 436 | } 437 | 438 | private void txtEncryptedText_KeyDown(object sender, KeyEventArgs e) 439 | { 440 | if (e.Control && e.KeyCode == Keys.A) 441 | { 442 | txtEncryptedText.SelectAll(); 443 | e.Handled = true; 444 | } 445 | } 446 | 447 | private void txtNormalText_TextChanged(object sender, EventArgs e) 448 | { 449 | groupBoxNormal.SuspendLayout(); 450 | groupBoxNormal.Text = string.Format("{0} {1} {2} {3}", Language.NormalText, Language.Length, txtNormalText.TextLength, timeUsed); 451 | if (timeUsed.Length > 0) 452 | timeUsed = ""; 453 | groupBoxNormal.ResumeLayout(); 454 | groupBoxNormal.PerformLayout(); 455 | } 456 | 457 | private void txtEncryptedText_TextChanged(object sender, EventArgs e) 458 | { 459 | groupBoxEncrypt.SuspendLayout(); 460 | groupBoxEncrypt.Text = string.Format("{0} {1} {2} {3}", Language.EncryptedText, Language.Length, txtEncryptedText.TextLength, timeUsed); 461 | if (timeUsed.Length > 0) 462 | timeUsed = ""; 463 | groupBoxEncrypt.ResumeLayout(); 464 | groupBoxEncrypt.PerformLayout(); 465 | } 466 | 467 | #endregion 468 | } 469 | } 470 | -------------------------------------------------------------------------------- /source_code/Form1.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 | 121 | 17, 17 122 | 123 | 124 | 114, 17 125 | 126 | 127 | 25 128 | 129 | 130 | 131 | 132 | AAABAAEAICAAAAEAGACoDAAAFgAAACgAAAAgAAAAQAAAAAEAGAAAAAAAgAwAAAAAAAAAAAAAAAAAAAAA 133 | AAAAAAAAAAAAAAAEBAQBAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 134 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBQUAAAAAAAAAAAAAAAAAAAABAQEAAAAEBARBQUFgYGBj 135 | Y2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NTU1Mc 136 | HBwAAAAAAAAAAAAAAAAAAAABAQEAAAA3NzfNzc3///////////////////////////////////////// 137 | ///////////////////////////////////////////////r6+t2dnYAAAABAQEAAAAKCgoAAAApKSns 138 | 7Oz////8/Pz7+/v6+vr6+vr5+fn5+fn4+Pj8/Pz6+vr5+fn5+fn5+fn8/Pz8/Pz6+vr7+/v7+/v5+fn5 139 | +fn6+vr7+/v5+fn+/v7///91dXUAAAAGBgYGBgYAAAClpaX////9/f39/f3+/v7///////////////// 140 | ///+/v7////////////////+/v7////////////////////////////////////////////x8fEdHR0A 141 | AAAAAAANDQ3q6uq7u7vW1tb///////+wsLCurq5wcHB7e3ugoKD////i4uKAgIB4eHjCwsL///////+3 142 | t7fp6enLy8twcHB/f3+Xl5fu7u6GhoZ8fHzk5OT///9VVVUAAAAAAAAaGhr39/e9vb1ycnLc3Ny1tbV9 143 | fX2Li4uXl5fl5eVra2u1tbV1dXWvr6/R0dFVVVXX19f9/f17e3vMzMzg4OBAQECtra3l5eWrq6ujo6PF 144 | xcVwcHD+/v5mZmYAAAAAAAAbGxvo6Oj///9QUFB3d3dAQEDOzs6dnZ1xcXGpqal0dHSlpaV+fn7///// 145 | ///09PTu7u7///+KiorGxsb////e3t5jY2Pd3d39/f339/ehoaGLi4v///9mZmYAAAAAAAAbGxvm5ub/ 146 | //+kpKStra2Li4v8/PyQkJB7e3utra1paWnIyMhxcXH////////t7e309PTOzs53d3fPz8/x8fH////m 147 | 5uZsbGzz8/Pw8PBnZ2e3t7f///9lZWUAAAAAAAAcHBzo6Oj9/f3u7u46OjqdnZ3///+FhYWBgYHCwsJY 148 | WFjf399+fn6VlZWwsLBeXl7z8/O7u7suLi7d3d3S0tJvb2+dnZ2BgYG9vb2FhYWKioqdnZ3///9lZWUA 149 | AAAAAAAbGxvt7e3///////++vr7p6en+/v7U1NSTk5OXl5fJycn////39/eioqKQkJDe3t7////////V 150 | 1dXr6+v///+8vLyWlpbu7u7///+rq6uoqKj6+vr///9nZ2cAAAAAAAAgICDW1tbl5eX+/v7////////8 151 | /Pz////////////////9/f3////////////////9/f39/f3////////+/v7////////////+/v7///// 152 | ///8/Pz///9oaGgAAAAAAAAkJCTFxcVeXl7z8/P+/v7+/v7////+/v7////5+fn8/Pz+/v7+/v78/Pz6 153 | +vr9/f3////+/v78/Pz+/v7+/v78/Pz7+/v////////8/Pz8/Pz8/Pz+/v5oaGgAAAAAAAAZGRn29vaN 154 | jY26urqFhYWGhoaRkZGioqJeXl55eXmbm5v////8/Pz+/v69vb3j4+OdnZ37+/v9/f37+/v8/Pz8/Pz9 155 | /f2mpqbt7e39/f36+vr29vb8/PxnZ2cAAAAAAAAbGxvu7u6Tk5OZmZloaGiYmJhGRkbQ0NBTU1O6urr0 156 | 9PT8/Pz7+/v+/v7R0dHc3NxmZmb29vb////////////8/Pz///+Xl5e2trb////Y2NiUlJT///9mZmYA 157 | AAAAAAAaGhrx8fGEhITKysqtra2WlpZHR0f////k5ORiYmLY2Nj///////////+mpqbY2NhQUFBxcXFr 158 | a2vJycnT09P39/fZ2dm7u7uamprT09NfX188PDyioqJlZWUAAAAAAAAbGxvv7++enp7Ozs6JiYl1dXWB 159 | gYHk5OT7+/vi4uJ1dXXe3t5vb2/e3t6VlZXPz89wcHD6+vra2tppaWmenp6pqamKiorp6el9fX3z8/O1 160 | tbVtbW3l5eVlZWUAAAAAAAAbGxvt7e3Pz8/y8vL5+fnd3d3////CwsJpaWmDg4OSkpLFxcU5OTnExMSC 161 | goLPz89YWFikpKSMjIx6enrx8fFHR0enp6f///+Hh4fW1tb39/fR0dH///9nZ2cAAAAAAAAbGxvs7Oza 162 | 2trw8PD////////8/Pz////JycmxsbH8/Pz+/v7q6ur+/v7Z2dn19fXExMSsrKyxsbHy8vL////Kysrt 163 | 7e38/Pzn5+fm5ub////////+/v5oaGgAAAAAAAAcHBzp6en////+/v7+/v79/f3////////////////+ 164 | /v7+/v7////////////9/f3////////////////////////////////////////////39/f///9nZ2cA 165 | AAAAAAAbGxvq6ury8vL9/f37+/v9/f339/fy8vLg4ODi4uL////////////v7+/g4OD////8/Pz8/Pzz 166 | 8/P8/Pz29vbm5ubc3Nzn5+f////x8fHq6ur///////9oaGgAAAAAAAAZGRn6+vqJiYmkpKT///////9n 167 | Z2dzc3McHBwxMTFXV1f19fWurq46OjorKyt6enr9/f3///99fX3Nzc2lpaUJCQk5OTlUVFTJyck2NjYz 168 | MzO2trb///9mZmYAAAAAAAAZGRn39/fExMQsLCyTk5NhYWFoaGiMjIykpKT///9nZ2d/f39CQkLS0tL3 169 | 9/dQUFDExMT8/PxpaWmwsLDw8PA6OjqSkpL///+SkpLFxcXe3t4eHh7///9mZmYAAAAAAAAbGxvn5+f/ 170 | //81NTV9fX0pKSnMzMyTk5M5OTlhYWE+Pj6WlpZ5eXn////6+vr////39/f///95eXmsrKz////09PQ7 171 | OzugoKD////Y2Ng7Ozt8fHz///9lZWUAAAAAAAAcHBzm5ub+/v6goKBdXV1nZ2f6+vqCgoKBgYHOzs5D 172 | Q0O8vLxERET///////+ioqLm5uaHh4dERETBwcHV1dXb29v5+fkgICDR0dHd3d1wcHCZmZn+/v5kZGQA 173 | AAAAAAAbGxvn5+f+/v719fUODg6Kior///96enovLy9XV1c0NDTq6up4eHhFRUVFRUU8PDz6+vq8vLwn 174 | JyfKysrQ0NA1NTVAQEB4eHi1tbU/Pz9RUVGjo6P+/v5jY2MAAAAAAAAFBQXW1tb8/Pz+/v7U1NTy8vL+ 175 | /v7b29uenp6YmJjf39////////+0tLSampr4+Pj////////n5+ft7e3////R0dGkpKT///////++vr61 176 | tbX///////9EREQAAAAJCQkAAAB7e3v////4+Pj////////9/f3////////////////8/Pz7+/v///// 177 | ///////9/f37+/v////////8/Pz////////9/f37+/v////////////V1dUICAgCAgIEBAQAAAAJCQm5 178 | ubn///////////////////////////////////////////////////////////////////////////// 179 | ///////////////////w8PA8PDwAAAAGBgYAAAABAQEAAAAJCQmAgIDU1NTp6enp6enq6urq6urq6urq 180 | 6urq6urq6urq6urq6urq6urq6urq6urq6urq6urq6urq6urq6urp6enp6enf39+oqKgqKioAAAABAQEA 181 | AAAAAAAAAAAAAAAAAAAAAAAFBQUdHR0cHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwc 182 | HBwcHBwcHBwcHBwcHBwcHBwdHR0REREAAAAAAAABAQEAAAAAAAAAAAAAAAAAAAADAwMKCgoAAAAAAAAA 183 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG 184 | BgYFBQUAAAAAAAAAAADgAAAHwAAAA4AAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 185 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 186 | AAAAAAAAAAAAAIAAAAHAAAAD4AAABw== 187 | 188 | 189 | -------------------------------------------------------------------------------- /source_code/FormAbout.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace ctiencrypt 2 | { 3 | partial class FormAbout 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 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAbout)); 32 | this.pictureBox1 = new System.Windows.Forms.PictureBox(); 33 | this.lbTitle = new System.Windows.Forms.Label(); 34 | this.lbDescription = new System.Windows.Forms.Label(); 35 | this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); 36 | this.label1 = new System.Windows.Forms.Label(); 37 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); 38 | this.tableLayoutPanel1.SuspendLayout(); 39 | this.SuspendLayout(); 40 | // 41 | // pictureBox1 42 | // 43 | this.pictureBox1.Image = global::ctiencrypt.Properties.Resources.logo; 44 | this.pictureBox1.Location = new System.Drawing.Point(18, 18); 45 | this.pictureBox1.Name = "pictureBox1"; 46 | this.tableLayoutPanel1.SetRowSpan(this.pictureBox1, 3); 47 | this.pictureBox1.Size = new System.Drawing.Size(163, 159); 48 | this.pictureBox1.TabIndex = 0; 49 | this.pictureBox1.TabStop = false; 50 | // 51 | // lbTitle 52 | // 53 | this.lbTitle.AutoSize = true; 54 | this.lbTitle.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 55 | this.lbTitle.Location = new System.Drawing.Point(187, 15); 56 | this.lbTitle.Name = "lbTitle"; 57 | this.lbTitle.Size = new System.Drawing.Size(74, 21); 58 | this.lbTitle.TabIndex = 1; 59 | this.lbTitle.Text = "app title"; 60 | // 61 | // lbDescription 62 | // 63 | this.lbDescription.AutoSize = true; 64 | this.lbDescription.Location = new System.Drawing.Point(187, 51); 65 | this.lbDescription.Name = "lbDescription"; 66 | this.lbDescription.Padding = new System.Windows.Forms.Padding(0, 10, 0, 0); 67 | this.lbDescription.Size = new System.Drawing.Size(77, 25); 68 | this.lbDescription.TabIndex = 2; 69 | this.lbDescription.Text = "lbDescription"; 70 | // 71 | // tableLayoutPanel1 72 | // 73 | this.tableLayoutPanel1.AutoSize = true; 74 | this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 75 | this.tableLayoutPanel1.ColumnCount = 2; 76 | this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); 77 | this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); 78 | this.tableLayoutPanel1.Controls.Add(this.pictureBox1, 0, 0); 79 | this.tableLayoutPanel1.Controls.Add(this.lbTitle, 1, 0); 80 | this.tableLayoutPanel1.Controls.Add(this.label1, 1, 1); 81 | this.tableLayoutPanel1.Controls.Add(this.lbDescription, 1, 2); 82 | this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; 83 | this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); 84 | this.tableLayoutPanel1.Name = "tableLayoutPanel1"; 85 | this.tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(15); 86 | this.tableLayoutPanel1.RowCount = 3; 87 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); 88 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); 89 | this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); 90 | this.tableLayoutPanel1.Size = new System.Drawing.Size(539, 362); 91 | this.tableLayoutPanel1.TabIndex = 3; 92 | // 93 | // label1 94 | // 95 | this.label1.AutoSize = true; 96 | this.label1.Location = new System.Drawing.Point(187, 36); 97 | this.label1.Name = "label1"; 98 | this.label1.Size = new System.Drawing.Size(274, 15); 99 | this.label1.TabIndex = 3; 100 | this.label1.Text = "https://github.com/adriancs2/CTI-Text-Encryption"; 101 | // 102 | // FormAbout 103 | // 104 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; 105 | this.AutoSize = true; 106 | this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 107 | this.ClientSize = new System.Drawing.Size(539, 362); 108 | this.Controls.Add(this.tableLayoutPanel1); 109 | this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 110 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 111 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 112 | this.MaximizeBox = false; 113 | this.MinimizeBox = false; 114 | this.Name = "FormAbout"; 115 | this.ShowInTaskbar = false; 116 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 117 | this.Text = "About"; 118 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); 119 | this.tableLayoutPanel1.ResumeLayout(false); 120 | this.tableLayoutPanel1.PerformLayout(); 121 | this.ResumeLayout(false); 122 | this.PerformLayout(); 123 | 124 | } 125 | 126 | #endregion 127 | 128 | private System.Windows.Forms.PictureBox pictureBox1; 129 | private System.Windows.Forms.Label lbTitle; 130 | private System.Windows.Forms.Label lbDescription; 131 | private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; 132 | private System.Windows.Forms.Label label1; 133 | } 134 | } -------------------------------------------------------------------------------- /source_code/FormAbout.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Text; 7 | using System.Windows.Forms; 8 | 9 | namespace ctiencrypt 10 | { 11 | public partial class FormAbout : Form 12 | { 13 | public FormAbout() 14 | { 15 | InitializeComponent(); 16 | 17 | // An universal font that can display all languages in the world 18 | LoadEmbededFont(); 19 | 20 | lbTitle.Text = Language.CTITextEncryption; 21 | lbDescription.Text = Language.AboutDescription; 22 | } 23 | 24 | void LoadEmbededFont() 25 | { 26 | if (config.FontSegoeUI.Families.Length == 0) 27 | { 28 | try 29 | { 30 | unsafe 31 | { 32 | fixed (byte* pFontData = Properties.Resources.segoeui) 33 | { 34 | uint dummy = 0; 35 | config.FontSegoeUI.AddMemoryFont((IntPtr)pFontData, Properties.Resources.segoeui.Length); 36 | config.AddFontMemResourceEx((IntPtr)pFontData, (uint)Properties.Resources.segoeui.Length, IntPtr.Zero, ref dummy); 37 | } 38 | } 39 | } 40 | catch 41 | { } 42 | } 43 | 44 | this.Font = new Font(config.FontSegoeUI.Families[0], 9); 45 | lbTitle.Font = new Font(config.FontSegoeUI.Families[0], 12, FontStyle.Bold); 46 | } 47 | 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /source_code/FormAbout.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 | 121 | 122 | 123 | AAABAAEAICAAAAEAGACoDAAAFgAAACgAAAAgAAAAQAAAAAEAGAAAAAAAgAwAAAAAAAAAAAAAAAAAAAAA 124 | AAAAAAAAAAAAAAAEBAQBAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 125 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBQUAAAAAAAAAAAAAAAAAAAABAQEAAAAEBARBQUFgYGBj 126 | Y2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NTU1Mc 127 | HBwAAAAAAAAAAAAAAAAAAAABAQEAAAA3NzfNzc3///////////////////////////////////////// 128 | ///////////////////////////////////////////////r6+t2dnYAAAABAQEAAAAKCgoAAAApKSns 129 | 7Oz////8/Pz7+/v6+vr6+vr5+fn5+fn4+Pj8/Pz6+vr5+fn5+fn5+fn8/Pz8/Pz6+vr7+/v7+/v5+fn5 130 | +fn6+vr7+/v5+fn+/v7///91dXUAAAAGBgYGBgYAAAClpaX////9/f39/f3+/v7///////////////// 131 | ///+/v7////////////////+/v7////////////////////////////////////////////x8fEdHR0A 132 | AAAAAAANDQ3q6uq7u7vW1tb///////+wsLCurq5wcHB7e3ugoKD////i4uKAgIB4eHjCwsL///////+3 133 | t7fp6enLy8twcHB/f3+Xl5fu7u6GhoZ8fHzk5OT///9VVVUAAAAAAAAaGhr39/e9vb1ycnLc3Ny1tbV9 134 | fX2Li4uXl5fl5eVra2u1tbV1dXWvr6/R0dFVVVXX19f9/f17e3vMzMzg4OBAQECtra3l5eWrq6ujo6PF 135 | xcVwcHD+/v5mZmYAAAAAAAAbGxvo6Oj///9QUFB3d3dAQEDOzs6dnZ1xcXGpqal0dHSlpaV+fn7///// 136 | ///09PTu7u7///+KiorGxsb////e3t5jY2Pd3d39/f339/ehoaGLi4v///9mZmYAAAAAAAAbGxvm5ub/ 137 | //+kpKStra2Li4v8/PyQkJB7e3utra1paWnIyMhxcXH////////t7e309PTOzs53d3fPz8/x8fH////m 138 | 5uZsbGzz8/Pw8PBnZ2e3t7f///9lZWUAAAAAAAAcHBzo6Oj9/f3u7u46OjqdnZ3///+FhYWBgYHCwsJY 139 | WFjf399+fn6VlZWwsLBeXl7z8/O7u7suLi7d3d3S0tJvb2+dnZ2BgYG9vb2FhYWKioqdnZ3///9lZWUA 140 | AAAAAAAbGxvt7e3///////++vr7p6en+/v7U1NSTk5OXl5fJycn////39/eioqKQkJDe3t7////////V 141 | 1dXr6+v///+8vLyWlpbu7u7///+rq6uoqKj6+vr///9nZ2cAAAAAAAAgICDW1tbl5eX+/v7////////8 142 | /Pz////////////////9/f3////////////////9/f39/f3////////+/v7////////////+/v7///// 143 | ///8/Pz///9oaGgAAAAAAAAkJCTFxcVeXl7z8/P+/v7+/v7////+/v7////5+fn8/Pz+/v7+/v78/Pz6 144 | +vr9/f3////+/v78/Pz+/v7+/v78/Pz7+/v////////8/Pz8/Pz8/Pz+/v5oaGgAAAAAAAAZGRn29vaN 145 | jY26urqFhYWGhoaRkZGioqJeXl55eXmbm5v////8/Pz+/v69vb3j4+OdnZ37+/v9/f37+/v8/Pz8/Pz9 146 | /f2mpqbt7e39/f36+vr29vb8/PxnZ2cAAAAAAAAbGxvu7u6Tk5OZmZloaGiYmJhGRkbQ0NBTU1O6urr0 147 | 9PT8/Pz7+/v+/v7R0dHc3NxmZmb29vb////////////8/Pz///+Xl5e2trb////Y2NiUlJT///9mZmYA 148 | AAAAAAAaGhrx8fGEhITKysqtra2WlpZHR0f////k5ORiYmLY2Nj///////////+mpqbY2NhQUFBxcXFr 149 | a2vJycnT09P39/fZ2dm7u7uamprT09NfX188PDyioqJlZWUAAAAAAAAbGxvv7++enp7Ozs6JiYl1dXWB 150 | gYHk5OT7+/vi4uJ1dXXe3t5vb2/e3t6VlZXPz89wcHD6+vra2tppaWmenp6pqamKiorp6el9fX3z8/O1 151 | tbVtbW3l5eVlZWUAAAAAAAAbGxvt7e3Pz8/y8vL5+fnd3d3////CwsJpaWmDg4OSkpLFxcU5OTnExMSC 152 | goLPz89YWFikpKSMjIx6enrx8fFHR0enp6f///+Hh4fW1tb39/fR0dH///9nZ2cAAAAAAAAbGxvs7Oza 153 | 2trw8PD////////8/Pz////JycmxsbH8/Pz+/v7q6ur+/v7Z2dn19fXExMSsrKyxsbHy8vL////Kysrt 154 | 7e38/Pzn5+fm5ub////////+/v5oaGgAAAAAAAAcHBzp6en////+/v7+/v79/f3////////////////+ 155 | /v7+/v7////////////9/f3////////////////////////////////////////////39/f///9nZ2cA 156 | AAAAAAAbGxvq6ury8vL9/f37+/v9/f339/fy8vLg4ODi4uL////////////v7+/g4OD////8/Pz8/Pzz 157 | 8/P8/Pz29vbm5ubc3Nzn5+f////x8fHq6ur///////9oaGgAAAAAAAAZGRn6+vqJiYmkpKT///////9n 158 | Z2dzc3McHBwxMTFXV1f19fWurq46OjorKyt6enr9/f3///99fX3Nzc2lpaUJCQk5OTlUVFTJyck2NjYz 159 | MzO2trb///9mZmYAAAAAAAAZGRn39/fExMQsLCyTk5NhYWFoaGiMjIykpKT///9nZ2d/f39CQkLS0tL3 160 | 9/dQUFDExMT8/PxpaWmwsLDw8PA6OjqSkpL///+SkpLFxcXe3t4eHh7///9mZmYAAAAAAAAbGxvn5+f/ 161 | //81NTV9fX0pKSnMzMyTk5M5OTlhYWE+Pj6WlpZ5eXn////6+vr////39/f///95eXmsrKz////09PQ7 162 | OzugoKD////Y2Ng7Ozt8fHz///9lZWUAAAAAAAAcHBzm5ub+/v6goKBdXV1nZ2f6+vqCgoKBgYHOzs5D 163 | Q0O8vLxERET///////+ioqLm5uaHh4dERETBwcHV1dXb29v5+fkgICDR0dHd3d1wcHCZmZn+/v5kZGQA 164 | AAAAAAAbGxvn5+f+/v719fUODg6Kior///96enovLy9XV1c0NDTq6up4eHhFRUVFRUU8PDz6+vq8vLwn 165 | JyfKysrQ0NA1NTVAQEB4eHi1tbU/Pz9RUVGjo6P+/v5jY2MAAAAAAAAFBQXW1tb8/Pz+/v7U1NTy8vL+ 166 | /v7b29uenp6YmJjf39////////+0tLSampr4+Pj////////n5+ft7e3////R0dGkpKT///////++vr61 167 | tbX///////9EREQAAAAJCQkAAAB7e3v////4+Pj////////9/f3////////////////8/Pz7+/v///// 168 | ///////9/f37+/v////////8/Pz////////9/f37+/v////////////V1dUICAgCAgIEBAQAAAAJCQm5 169 | ubn///////////////////////////////////////////////////////////////////////////// 170 | ///////////////////w8PA8PDwAAAAGBgYAAAABAQEAAAAJCQmAgIDU1NTp6enp6enq6urq6urq6urq 171 | 6urq6urq6urq6urq6urq6urq6urq6urq6urq6urq6urq6urq6urp6enp6enf39+oqKgqKioAAAABAQEA 172 | AAAAAAAAAAAAAAAAAAAAAAAFBQUdHR0cHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwc 173 | HBwcHBwcHBwcHBwcHBwcHBwdHR0REREAAAAAAAABAQEAAAAAAAAAAAAAAAAAAAADAwMKCgoAAAAAAAAA 174 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG 175 | BgYFBQUAAAAAAAAAAADgAAAHwAAAA4AAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 176 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 177 | AAAAAAAAAAAAAIAAAAHAAAAD4AAABw== 178 | 179 | 180 | -------------------------------------------------------------------------------- /source_code/Language.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace ctiencrypt 6 | { 7 | class Language 8 | { 9 | public static string 10 | 11 | // Application Title 12 | CTITextEncryption = "CTI Text Encryption", 13 | 14 | // About 15 | AboutDescription = config.Version + @" 16 | Features 17 | 18 | - Freeware 19 | - A text encryption tool 20 | - Core encryption algorithm: AES(Rijndael) 256 bits 21 | - Password hashing algorithm: SHA512", 22 | 23 | // UI 24 | Pwd1 = "Password 1", 25 | Pwd2 = "Password 2", 26 | Pwd3 = "Password 3", 27 | Pwd4 = "Password 4", 28 | NormalText = "Normal Text.", 29 | EncryptedText = "Encrypted Text.", 30 | Length = "Length:", 31 | Passwords = "Passwords", 32 | ButtonErasePwd = "Erase Password", 33 | ButtonEraseAll = "Erase All", 34 | ButtonInfo = "Info", 35 | ButtonEncrypt="Encrypt", 36 | ButtonDecrypt="Decrypt", 37 | ButtonCopy="Copy", 38 | ButtonPaste="Paste", 39 | ButtonErase="Erase", 40 | ButtonFont="Font", 41 | 42 | // Tooltip 43 | TooltipEncrypt = "Encrypt", 44 | TooltipDecrypt = "Decrypt", 45 | TooltipResetAll = "Reset/Clear all", 46 | TooltipResetPwd = "Reset/Clear all passwords", 47 | TooltipChangeFont = "Change Font", 48 | TooltipCopyTxtNormal = "Copy all normal text", 49 | TooltipPasteTxtNormal = "Paste to normal text", 50 | TooltipResetTxtNormal = "Reset/Clear normal text", 51 | TooltipCopyTxtEncrypted = "Copy all encrypted text", 52 | TooltipPasteTxtEncrypted = "paste encrypted text", 53 | TooltipResetTxtEncrypted = "Reset/Clear encrypted text", 54 | TooltipInformation = "Information", 55 | 56 | // General Messages 57 | MsgNormalTextIsEmpty = "Normal text is empty. Nothing to encrypt.", 58 | MsgEncryptedTextIsEmpty = "Encrypted text is empty. Nothing to decrypt.", 59 | 60 | // Error Messages 61 | Error = "Error", 62 | ErrorGeneralMessage = "An unknown error has occured. Please contact the developer. Thanks you.", 63 | ErrorEncryptFail = "Encryptin Fail", 64 | ErrorEncryptFailDescription = "Fail to encrypt. Please try again.", 65 | ErrorDecryptionFail = "Decryption Fail", 66 | ErrorWrongPassword = "Wrong password or incomplete context.", 67 | ErrorCopy = "Error. Unable to copy.", 68 | ErrorCut = "Error. Unable to cut.", 69 | ErrorPaste = "Error. Unable to paste."; 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /source_code/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Windows.Forms; 4 | 5 | namespace ctiencrypt 6 | { 7 | static class Program 8 | { 9 | /// 10 | /// The main entry point for the application. 11 | /// 12 | [STAThread] 13 | static void Main() 14 | { 15 | Application.EnableVisualStyles(); 16 | Application.SetCompatibleTextRenderingDefault(false); 17 | Application.Run(new Form1()); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /source_code/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("CTI Text Encryption 6.0")] 9 | [assembly: AssemblyDescription("A text encryption tool.")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("ctiencrypt.codeplex.com")] 12 | [assembly: AssemblyProduct("ctiencrypt.codeplex.com")] 13 | [assembly: AssemblyCopyright("ctiencrypt.codeplex.com")] 14 | [assembly: AssemblyTrademark("ctiencrypt.codeplex.com")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("93d01f67-39d6-4e3f-9cbc-56a8df1b2947")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("6.0.0.0")] 36 | [assembly: AssemblyFileVersion("6.0.0.0")] 37 | -------------------------------------------------------------------------------- /source_code/Properties/Resources.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 ctiencrypt.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 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 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ctiencrypt.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | internal static System.Drawing.Bitmap btDecrypt { 67 | get { 68 | object obj = ResourceManager.GetObject("btDecrypt", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Bitmap. 75 | /// 76 | internal static System.Drawing.Bitmap btEncrypt { 77 | get { 78 | object obj = ResourceManager.GetObject("btEncrypt", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// Looks up a localized resource of type System.Drawing.Bitmap. 85 | /// 86 | internal static System.Drawing.Bitmap buttonFont { 87 | get { 88 | object obj = ResourceManager.GetObject("buttonFont", resourceCulture); 89 | return ((System.Drawing.Bitmap)(obj)); 90 | } 91 | } 92 | 93 | /// 94 | /// Looks up a localized resource of type System.Drawing.Bitmap. 95 | /// 96 | internal static System.Drawing.Bitmap copy24 { 97 | get { 98 | object obj = ResourceManager.GetObject("copy24", resourceCulture); 99 | return ((System.Drawing.Bitmap)(obj)); 100 | } 101 | } 102 | 103 | /// 104 | /// Looks up a localized resource of type System.Drawing.Bitmap. 105 | /// 106 | internal static System.Drawing.Bitmap cut24 { 107 | get { 108 | object obj = ResourceManager.GetObject("cut24", resourceCulture); 109 | return ((System.Drawing.Bitmap)(obj)); 110 | } 111 | } 112 | 113 | /// 114 | /// Looks up a localized resource of type System.Drawing.Bitmap. 115 | /// 116 | internal static System.Drawing.Bitmap info25 { 117 | get { 118 | object obj = ResourceManager.GetObject("info25", resourceCulture); 119 | return ((System.Drawing.Bitmap)(obj)); 120 | } 121 | } 122 | 123 | /// 124 | /// Looks up a localized resource of type System.Drawing.Bitmap. 125 | /// 126 | internal static System.Drawing.Bitmap logo { 127 | get { 128 | object obj = ResourceManager.GetObject("logo", resourceCulture); 129 | return ((System.Drawing.Bitmap)(obj)); 130 | } 131 | } 132 | 133 | /// 134 | /// Looks up a localized resource of type System.Drawing.Bitmap. 135 | /// 136 | internal static System.Drawing.Bitmap paste24 { 137 | get { 138 | object obj = ResourceManager.GetObject("paste24", resourceCulture); 139 | return ((System.Drawing.Bitmap)(obj)); 140 | } 141 | } 142 | 143 | /// 144 | /// Looks up a localized resource of type System.Drawing.Bitmap. 145 | /// 146 | internal static System.Drawing.Bitmap reset25 { 147 | get { 148 | object obj = ResourceManager.GetObject("reset25", resourceCulture); 149 | return ((System.Drawing.Bitmap)(obj)); 150 | } 151 | } 152 | 153 | /// 154 | /// Looks up a localized resource of type System.Byte[]. 155 | /// 156 | internal static byte[] segoeui { 157 | get { 158 | object obj = ResourceManager.GetObject("segoeui", resourceCulture); 159 | return ((byte[])(obj)); 160 | } 161 | } 162 | } 163 | } 164 | -------------------------------------------------------------------------------- /source_code/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 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | ..\Resources\paste24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 123 | 124 | 125 | ..\Resources\info25.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 126 | 127 | 128 | ..\Resources\copy24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 129 | 130 | 131 | ..\Resources\segoeui.ttf;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 132 | 133 | 134 | ..\Resources\reset25.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 135 | 136 | 137 | ..\Resources\btDecrypt.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 138 | 139 | 140 | ..\Resources\btEncrypt.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 141 | 142 | 143 | ..\Resources\cut24.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 144 | 145 | 146 | ..\Resources\logo.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 147 | 148 | 149 | ..\Resources\buttonFont.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 150 | 151 | -------------------------------------------------------------------------------- /source_code/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 ctiencrypt.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /source_code/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /source_code/Resources/btDecrypt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adriancs2/CTI-Text-Encryption/37a41f2dde1044ed231ee038618109e3b974aa10/source_code/Resources/btDecrypt.png -------------------------------------------------------------------------------- /source_code/Resources/btEncrypt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adriancs2/CTI-Text-Encryption/37a41f2dde1044ed231ee038618109e3b974aa10/source_code/Resources/btEncrypt.png -------------------------------------------------------------------------------- /source_code/Resources/buttonFont.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adriancs2/CTI-Text-Encryption/37a41f2dde1044ed231ee038618109e3b974aa10/source_code/Resources/buttonFont.png -------------------------------------------------------------------------------- /source_code/Resources/copy24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adriancs2/CTI-Text-Encryption/37a41f2dde1044ed231ee038618109e3b974aa10/source_code/Resources/copy24.png -------------------------------------------------------------------------------- /source_code/Resources/cut24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adriancs2/CTI-Text-Encryption/37a41f2dde1044ed231ee038618109e3b974aa10/source_code/Resources/cut24.png -------------------------------------------------------------------------------- /source_code/Resources/info25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adriancs2/CTI-Text-Encryption/37a41f2dde1044ed231ee038618109e3b974aa10/source_code/Resources/info25.png -------------------------------------------------------------------------------- /source_code/Resources/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adriancs2/CTI-Text-Encryption/37a41f2dde1044ed231ee038618109e3b974aa10/source_code/Resources/logo.png -------------------------------------------------------------------------------- /source_code/Resources/paste24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adriancs2/CTI-Text-Encryption/37a41f2dde1044ed231ee038618109e3b974aa10/source_code/Resources/paste24.png -------------------------------------------------------------------------------- /source_code/Resources/reset25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adriancs2/CTI-Text-Encryption/37a41f2dde1044ed231ee038618109e3b974aa10/source_code/Resources/reset25.png -------------------------------------------------------------------------------- /source_code/Resources/segoeui.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adriancs2/CTI-Text-Encryption/37a41f2dde1044ed231ee038618109e3b974aa10/source_code/Resources/segoeui.ttf -------------------------------------------------------------------------------- /source_code/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /source_code/config.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Drawing.Text; 5 | 6 | namespace ctiencrypt 7 | { 8 | class config 9 | { 10 | public const string Version = "6.0.2"; 11 | 12 | [System.Runtime.InteropServices.DllImport("gdi32.dll")] 13 | public static extern IntPtr AddFontMemResourceEx(IntPtr pbFont, uint cbFont, 14 | IntPtr pdv, [System.Runtime.InteropServices.In] ref uint pcFonts); 15 | public static PrivateFontCollection FontSegoeUI = new PrivateFontCollection(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /source_code/ctiencrypt.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {F8BA5E50-CF12-441E-A4A0-7F3583609224} 8 | WinExe 9 | Properties 10 | ctiencrypt 11 | CTI Text Encryption 6.0 12 | v4.0 13 | 512 14 | Client 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | true 26 | 27 | 28 | AnyCPU 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | 36 | 37 | bin\release32bit\ 38 | 39 | 40 | x86 41 | bin\x86\Debug\ 42 | true 43 | 44 | 45 | x86 46 | bin\x86\Release\ 47 | 48 | 49 | x86 50 | bin\x86\release32bit\ 51 | true 52 | true 53 | 54 | 55 | logo256.ico 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | Form 71 | 72 | 73 | Form1.cs 74 | 75 | 76 | Form 77 | 78 | 79 | FormAbout.cs 80 | 81 | 82 | 83 | 84 | 85 | Form1.cs 86 | 87 | 88 | FormAbout.cs 89 | 90 | 91 | ResXFileCodeGenerator 92 | Resources.Designer.cs 93 | Designer 94 | 95 | 96 | True 97 | Resources.resx 98 | True 99 | 100 | 101 | 102 | SettingsSingleFileGenerator 103 | Settings.Designer.cs 104 | 105 | 106 | True 107 | Settings.settings 108 | True 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 148 | -------------------------------------------------------------------------------- /source_code/ctiencrypt.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30110.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ctiencrypt", "ctiencrypt.csproj", "{F8BA5E50-CF12-441E-A4A0-7F3583609224}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Debug|x86 = Debug|x86 12 | Release|Any CPU = Release|Any CPU 13 | Release|x86 = Release|x86 14 | release32bit|Any CPU = release32bit|Any CPU 15 | release32bit|x86 = release32bit|x86 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {F8BA5E50-CF12-441E-A4A0-7F3583609224}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {F8BA5E50-CF12-441E-A4A0-7F3583609224}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {F8BA5E50-CF12-441E-A4A0-7F3583609224}.Debug|x86.ActiveCfg = Debug|x86 21 | {F8BA5E50-CF12-441E-A4A0-7F3583609224}.Debug|x86.Build.0 = Debug|x86 22 | {F8BA5E50-CF12-441E-A4A0-7F3583609224}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 | {F8BA5E50-CF12-441E-A4A0-7F3583609224}.Release|Any CPU.Build.0 = Release|Any CPU 24 | {F8BA5E50-CF12-441E-A4A0-7F3583609224}.Release|x86.ActiveCfg = Release|x86 25 | {F8BA5E50-CF12-441E-A4A0-7F3583609224}.Release|x86.Build.0 = Release|x86 26 | {F8BA5E50-CF12-441E-A4A0-7F3583609224}.release32bit|Any CPU.ActiveCfg = release32bit|Any CPU 27 | {F8BA5E50-CF12-441E-A4A0-7F3583609224}.release32bit|Any CPU.Build.0 = release32bit|Any CPU 28 | {F8BA5E50-CF12-441E-A4A0-7F3583609224}.release32bit|x86.ActiveCfg = release32bit|x86 29 | {F8BA5E50-CF12-441E-A4A0-7F3583609224}.release32bit|x86.Build.0 = release32bit|x86 30 | EndGlobalSection 31 | GlobalSection(SolutionProperties) = preSolution 32 | HideSolutionNode = FALSE 33 | EndGlobalSection 34 | EndGlobal 35 | -------------------------------------------------------------------------------- /source_code/logo256.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adriancs2/CTI-Text-Encryption/37a41f2dde1044ed231ee038618109e3b974aa10/source_code/logo256.ico --------------------------------------------------------------------------------