<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Security.Cryptography%2FTripleDESCryptoServiceProvider</id>
		<title>Csharp/C Sharp by API/System.Security.Cryptography/TripleDESCryptoServiceProvider - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Security.Cryptography%2FTripleDESCryptoServiceProvider"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Security.Cryptography/TripleDESCryptoServiceProvider&amp;action=history"/>
		<updated>2026-04-30T01:39:52Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Security.Cryptography/TripleDESCryptoServiceProvider&amp;diff=4379&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Security.Cryptography/TripleDESCryptoServiceProvider&amp;diff=4379&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Security.Cryptography/TripleDESCryptoServiceProvider&amp;diff=4380&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Security.Cryptography/TripleDESCryptoServiceProvider&amp;diff=4380&amp;oldid=prev"/>
				<updated>2010-05-26T12:10:50Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==TripleDESCryptoServiceProvider.CreateDecryptor==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
/*&lt;br /&gt;
C# Network Programming &lt;br /&gt;
by Richard Blum&lt;br /&gt;
Publisher: Sybex &lt;br /&gt;
ISBN: 0782141765&lt;br /&gt;
*/&lt;br /&gt;
using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.Security;&lt;br /&gt;
using System.Security.Cryptography;&lt;br /&gt;
using System.Text;&lt;br /&gt;
public class CryptoTest&lt;br /&gt;
{&lt;br /&gt;
   public static void Main()&lt;br /&gt;
   {&lt;br /&gt;
      Console.Write(&amp;quot;Enter phrase to encrypt: &amp;quot;);&lt;br /&gt;
      string phrase = Console.ReadLine();&lt;br /&gt;
      MemoryStream memstrm = new MemoryStream();&lt;br /&gt;
      byte[] Key = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,&lt;br /&gt;
                    0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16};&lt;br /&gt;
      byte[] IV = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,&lt;br /&gt;
                   0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16};&lt;br /&gt;
      TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider();&lt;br /&gt;
      CryptoStream csw = new CryptoStream(memstrm,&lt;br /&gt;
                     tdes.CreateEncryptor(Key, IV), CryptoStreamMode.Write);&lt;br /&gt;
      csw.Write(Encoding.ASCII.GetBytes(phrase), 0, phrase.Length);&lt;br /&gt;
      csw.FlushFinalBlock();&lt;br /&gt;
      byte[] cryptdata = memstrm.GetBuffer();&lt;br /&gt;
      Console.WriteLine(&amp;quot;Encrypted: {0}&amp;quot;,&lt;br /&gt;
              Encoding.ASCII.GetString(cryptdata, 0, (int)memstrm.Length));&lt;br /&gt;
      memstrm.Position = 0;&lt;br /&gt;
      byte[] data = new byte[1024];&lt;br /&gt;
      CryptoStream csr = new CryptoStream(memstrm,&lt;br /&gt;
                     tdes.CreateDecryptor(Key, IV), CryptoStreamMode.Read);&lt;br /&gt;
      int recv = csr.Read(data, 0, data.Length);&lt;br /&gt;
      string newphrase = Encoding.ASCII.GetString(data, 0, recv);&lt;br /&gt;
      Console.WriteLine(&amp;quot;Decrypted: {0}&amp;quot;, newphrase);&lt;br /&gt;
      csr.Close();&lt;br /&gt;
      csw.Close();&lt;br /&gt;
      memstrm.Close();&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==TripleDESCryptoServiceProvider.CreateEncryptor==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
C# Network Programming &lt;br /&gt;
by Richard Blum&lt;br /&gt;
Publisher: Sybex &lt;br /&gt;
ISBN: 0782141765&lt;br /&gt;
*/&lt;br /&gt;
using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.Security;&lt;br /&gt;
using System.Security.Cryptography;&lt;br /&gt;
using System.Text;&lt;br /&gt;
public class CryptoTest&lt;br /&gt;
{&lt;br /&gt;
   public static void Main()&lt;br /&gt;
   {&lt;br /&gt;
      Console.Write(&amp;quot;Enter phrase to encrypt: &amp;quot;);&lt;br /&gt;
      string phrase = Console.ReadLine();&lt;br /&gt;
      MemoryStream memstrm = new MemoryStream();&lt;br /&gt;
      byte[] Key = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,&lt;br /&gt;
                    0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16};&lt;br /&gt;
      byte[] IV = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,&lt;br /&gt;
                   0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16};&lt;br /&gt;
      TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider();&lt;br /&gt;
      CryptoStream csw = new CryptoStream(memstrm,&lt;br /&gt;
                     tdes.CreateEncryptor(Key, IV), CryptoStreamMode.Write);&lt;br /&gt;
      csw.Write(Encoding.ASCII.GetBytes(phrase), 0, phrase.Length);&lt;br /&gt;
      csw.FlushFinalBlock();&lt;br /&gt;
      byte[] cryptdata = memstrm.GetBuffer();&lt;br /&gt;
      Console.WriteLine(&amp;quot;Encrypted: {0}&amp;quot;,&lt;br /&gt;
              Encoding.ASCII.GetString(cryptdata, 0, (int)memstrm.Length));&lt;br /&gt;
      memstrm.Position = 0;&lt;br /&gt;
      byte[] data = new byte[1024];&lt;br /&gt;
      CryptoStream csr = new CryptoStream(memstrm,&lt;br /&gt;
                     tdes.CreateDecryptor(Key, IV), CryptoStreamMode.Read);&lt;br /&gt;
      int recv = csr.Read(data, 0, data.Length);&lt;br /&gt;
      string newphrase = Encoding.ASCII.GetString(data, 0, recv);&lt;br /&gt;
      Console.WriteLine(&amp;quot;Decrypted: {0}&amp;quot;, newphrase);&lt;br /&gt;
      csr.Close();&lt;br /&gt;
      csw.Close();&lt;br /&gt;
      memstrm.Close();&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==TripleDESCryptoServiceProvider.IV==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.Security.Cryptography;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  public static void Main() &lt;br /&gt;
  {&lt;br /&gt;
    TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider();&lt;br /&gt;
    FileStream fsKeyIn = File.OpenRead(@&amp;quot;c:\encrypted.key&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    BinaryReader br = new BinaryReader(fsKeyIn);&lt;br /&gt;
    tdes.Key = br.ReadBytes(24);&lt;br /&gt;
    tdes.IV = br.ReadBytes(8);&lt;br /&gt;
    FileStream fsIn = File.OpenRead(@&amp;quot;c:\encrypted.txt&amp;quot;);&lt;br /&gt;
    CryptoStream cs = new CryptoStream(fsIn, tdes.CreateDecryptor(),CryptoStreamMode.Read);&lt;br /&gt;
    StreamReader sr = new StreamReader(cs);&lt;br /&gt;
    Console.WriteLine(sr.ReadToEnd());&lt;br /&gt;
    sr.Close();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==TripleDESCryptoServiceProvider.Key==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.Security.Cryptography;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  public static void Main() &lt;br /&gt;
  {&lt;br /&gt;
    TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider();&lt;br /&gt;
    FileStream fsKeyIn = File.OpenRead(@&amp;quot;c:\encrypted.key&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    BinaryReader br = new BinaryReader(fsKeyIn);&lt;br /&gt;
    tdes.Key = br.ReadBytes(24);&lt;br /&gt;
    tdes.IV = br.ReadBytes(8);&lt;br /&gt;
    FileStream fsIn = File.OpenRead(@&amp;quot;c:\encrypted.txt&amp;quot;);&lt;br /&gt;
    CryptoStream cs = new CryptoStream(fsIn, tdes.CreateDecryptor(),CryptoStreamMode.Read);&lt;br /&gt;
    StreamReader sr = new StreamReader(cs);&lt;br /&gt;
    Console.WriteLine(sr.ReadToEnd());&lt;br /&gt;
    sr.Close();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>