سورس کد الگوریتم رمزنگاری AES (سی شارپ) - نسخه قابل چاپ +- Parsi Coders (http://parsicoders.com) +-- انجمن: Software Development Programming (http://parsicoders.com/forumdisplay.php?fid=37) +--- انجمن: C# Programming (http://parsicoders.com/forumdisplay.php?fid=55) +--- موضوع: سورس کد الگوریتم رمزنگاری AES (سی شارپ) (/showthread.php?tid=2636) |
سورس کد الگوریتم رمزنگاری AES (سی شارپ) - Amin_Mansouri - 08-01-2012 In cryptography, the Advanced Encryption Standard (AES) is a symmetric-key encryption standard. This standard comprises three block ciphers, AES-128, AES-192 and AES-256, adopted from a larger collection originally published as Rijndael. Each of these ciphers has a 128-bit block size, with key sizes of 128, 192 and 256 bits. What Is Encryption? Encryption is the process of changing data into a form that can be read only by the intended receiver. To decipher the message, the receiver of the encrypted data must have the proper decryption key (password). In traditional encryption schemes, the sender and the receiver use the same key to encrypt and decrypt data. In this case the key is the password you supply. Example Uses For Encryption Many modern day systems process data which is considered sensitive. For example, doctors store patient information, stock brokers store client financial data and home computer users store personal information on their computers — their own personal information. All this information is vulnerable to exposure in the event of the theft of the computer itself. Should you find yourself fortunate enough to be developing software in C# then you may find the following code snippets beneficial. کد: 01public static string Encrypt(string PlainText, string Password, string Salt, string HashAlgorithm, int PasswordIterations, string InitialVector, int KeySize) سمپل (اینکود) کد: Encrypt("mykey", "mypassword", "mysalt", "MD5",5, "qwertyuiqwertyui", 256); کد: public static string Decrypt(string CipherText, string Password, string Salt, string HashAlgorithm, int PasswordIterations, string InitialVector, int KeySize) کد: Decrypt("ND5lYPo4czOk5ZT7KNmU2Q==", "mypassword", "mysalt", "MD5",5, "qwertyuiqwertyui", 256); RE: سورس کد الگوریتم رمزنگاری AES (سی شارپ) - hamidshirazi - 12-31-2012 سلام نگفتيد اين كده ها را در كلاس بنويسيم يا بدنه اصلي برنامه |