Luxury clothes, shoes, bags

Luxury clothes, shoes, bags

Womens Fashion – Wallis – Dresses, Tops, Skirts and Petite clothing

[Original] Warcraft III shortcut keys to change the file CustomKeys.txt download

Postscript:
A, S, D, F
want to change what key changes it wants to open the file and write clearly.
Z, X, C, V
Q, W, E, R
these keys, and screen location corresponding to the farmers of all ethnic groups such as the lower left corner of the building is that icons, so that “Z” key.
the first orc shaman soldier skills “purification” and the Night Elf trees “stand up”, “rooted” to invalid keys, shortcut keys or the original key, the problem belongs to Blizzard. Welcome solution.
Description:
The following features are modified into Q, W, E, R key:
call a hero, a hero after the death of resurrection, such as the Grand Master Q, Hill W, Paladin E, blood magician R.
soldiers, heroes of the skills, principles, ibid.
will CustomKeys.txt files on the game file directory first layer, open the game after the “Options” – <"game of" open "custom shortcuts."
Known Bug:
2011 年 02 月 28 日
Wanted Chenghai 3C of CustomKeys.txt file.
basically into the production of this very troublesome, and requires the establishment of a back and forth a pair, the best a few years ago, and now out. Welcome News Bug or provide advice.
use:

Seeking Warcraft 3 Frozen Throne Orc tactics!

Press the mouse wheel: – Hold down to move the mouse to move the atlas
Hotkey = T
· or to other heroes discarded treasures.
· The number of such patients is to determine the policy of the hour – cancellation of orders.
– (activated) reminded Tip
——————————– –
children are generally named after the hero to take the first letter of the English name was two, repeat if necessary to change the present change, such as blood sorcerers (BMG) division and the Juggernaut (BM), blood sorcerers division again later added a G.
[ogru]
F9 – open the windows task records. allows you to view all the primary and optional tasks to be completed and the situation.
individual or a group of characters can be significantly marked from Definition dark color differences, which can walk through the process of inserting it into the book contract in the “escape sequences” to implement. escape sequences of the pattern is “| cARGB”, ARGB hexadecimal data is confusing transparent Alpha (alpha), red (red), green (green), blue (blue). escape sequence with the “| r” to suggest the color of the years then ended. Yishi a reminder of the above hotkey highlighted in yellow, the entry is like this:
Alt (if keying orders at the same time pressing) – Overrides formation movement during an action.
http://post. Baidu. com / f? kz = 96387112
F1-F3 – the selected 1-3 heroes. Continue to press 2 times the screen will move to the hero there.
hero sorcerers: Grand Master of the Ice Storm, Fire Master of exile, the demon hunter Mana Burn, The Warden instantaneous flash, dark secret of the Ranger arrows, tiger, bear ignore call.
cell technology: stealth archers, and Huntress, witch stealth sorcerers
· ground – a mobile unit to the destination, even if the road has not counter enemy attacks.
Hotkey = A < br /> · Decree explicitly recognized the principle of a building or treasure, the place where the technology.
F9 – open the windows task records. allows you to view all the primary and optional tasks to be completed and the situation.
Tip = Upgrade to the cast-iron sword (X), upgrade to the steel swords (Y), upgrade to the precious metal sword (Z)
—————– ———————-
2 本 finished, select the panda / Tau / frog men, as the two heroes, secretly leading a small number of large G MF, Chenpian to open a mine, and technology choice to ride a wolf / dragon / bat, are highly mobile forces ah.
cell technology: riding archers, knights Hippogryph scattered Hippogryph mount bow built hand, the evil wizard odious
Juggernaut: Blade Master (BM)
Watch: Warden (WD)
· the number of such patients is to determine the policy of the hour right-click on the small atlas – to move to the small screen click Atlas premises.
If necessary, remind the book contract can be self- Definition of shortcuts to meet the self-Definition The following items can be self-reminder Definition:
sorcerers Heroes: Paladin of Light, King of the Hill Storm Bolt, ignore the call of the prophet of the wolf, cattle stampede battle chief headman, lord of the abyss of fear howling
want acquaintance and more comprehensive to the end of the next link, write all the units and Embedding technology acronym, Embedding building.
Untip = Stop Defend (B)
key underlying purpose – to move in the atlas
basic game interface
Spacebar – the center of the screen in previous eight transactions occurred in cycle move.
· enemy unit / building – attacking principles.
box B it by farmers.
CTRL double-click the selected cell or cells – all around the screen is selected such units is the essence of
petty Juggernaut cheap friends.
F6 – fast life of fame game
DAYFLY stunt, storm troops RUSH model.
Esc – return to the previous menu
Alt-T – ON / OFF on the display in a small atlas terrain.
icon positions can be from the following Definition:
Hotkey = T
Heroes sorcerers: Master of the absorption of blood magic, LICH ice cream star, Naga Siren sorcerers shield
hero Technology: Grand Master who ignore calls for water, Juggernaut Wind Walk, Ngau Tau chief blow wave, shadow hunter snake to defend children eyes, tiger, eagle ignore call,
—————————– ———-
· trees / gold – a mobile unit to the destination (if the collection of resource units, it is enlist the resources).
F12 – Multiplayer is under record chat windows open, stand-alone mode is to open in full movement of the record windows. chat documented record of all your windows and
——————– keying ——————-
Prophet: Far Seer (FS)
Xiaoqiang: Crypt Lord (CL)
Z – had also want to pull out, but he always reminds me of seeing StarCraft inside that quack quack jack jack mining guy who finally remembered what it
· active unit command button.
cell technology: step soldier defense, pastor of disperse, disperse soul Walker, Kodo swallowed, elf from violence to disperse, put the bodies of dead meat grinder, put out by phagocytic sorcerers (disperse).
Translator Note: The above example is the English version, if your Warcraft Ⅲ shore Chinese display, you can also write this:
just a post tactics, tactics to match the late HUM Balm the basic form. Lightning kapa can quickly kill the Master HUM or the crushing of the Tauren plus lightning shield is born for the g guns. If master-class white cow, just to Hai a.
Tip = Train Orc Grunt (T)
information received, recorded live your windows are closed at this from the NPC got the movement, or reminder.
indeed the letter of the first, and the devil interest in animals is a word, A! often heard people say: “You do not A he ah”
hero sorcerers: the treatment of wave shadow hunter, protector of the forest guard wound, the death knight death contract ( to increase the blood itself, ah), lord of fear hypnosis, the Crypt Lord of the puncture, the silent quiet secret Ranger.
# – # number of selected units, continuous press 2 times the screen will move to the troops there.
Tip = training Orc Footman (| cffffcc00Tr)
Note that if a key be assigned to a unit with more than one move, when Warcraft Ⅲ is still running well, the result is no way expected, and only a move would work. Note that many of the same technology will be applied a variety of units, If a button on this unit there is no way there is a conflict, does not affect other units.
Ctrl-Enter – open the windows of the allies of the conversation
color is the most commonly used 16-bit color (along with computer disposal of punishment capacity, is to muster the 32-bit color) 16-bit color have 16777216 kinds of colors, let walk through the process of the 256 color depth (the greater the value the more light) red, green, blue combination, we can get that 16M color, while we come into contact with the general application software to enter data in hexadecimal, so the color is a FF7F00 orange: 255 (FF) of red, 127 (7F) green, 0 (0) of the blue. Alpha transparency in terms of the confusion has 256, the greater the value the more opaque, FF is the color, while 00 will not see, 7F is in violation of deed book will confuse King colors, reflecting the effect of transparency.
basic game interface
cell technology: the human uprising peasants, those who break the law to ignore calls for biological control of the dragon eagle Stephens technique, the rebirth of soul Walker Tauren, Knights blew bats, raptors Druid hurricane, Acolyte of the sacrifice, Ghoul and hate Cannibal Corpse, the collection of dead meat grinder body, wizard of disability, female demon curse, plus sorcerers statue.
[ogru]
Unhotkey = B
Dafa: Archmage (AM)
Buttonpos = 3,1
S Hello ft selected cells – from the currently selected forces in the Add / Remove Click the unit.
· active unit command button.
S Hello ft-Enter – open to all people within the game in the conversation window
Alt-F4 or Alt-q – quit Warcraft III.
R – REINFORCE enhance
Ngau Tau: Tauren C Hello eftain (TC)
basic game instructions:
– turn off the reminder Untip
tactic seems simple, but simply to seize the ORC characteristics, excellent use of the large G King the upper hand early, you can rely on speed scroll speed in filling, tactical classic ah.
Lich is all written on LICH
· Decree explicitly recognized the principle of a building or treasure, the place where the technology.
press the mouse wheel: – Hold down the mouse can move on to the atlas Mobile
Tip = Defend (A)
Alt-G – Maps in a small signal on the Press and click on the small atlas clearly recognized the principle to ally keying signal.
6.TR ( Tower Rush)
Spacebar – the center of the screen in previous eight transactions occurred in the mobile loop.
look:
Q – QUILBEAST porcupine
F. – FORM

(R) can not use the provider “RsaProtectedConfigurationProvider” solution to decrypt

/**////


The outset that intend to use relative paths in protectedKeyFilename idea is not too do the same! Why? Because the key file can not be directly copied to other machines. When we go to each key on the machine configuration file (including creating a new key or import the key, all need to save the absolute path of the key position), we already know the absolute path, so there is no need to use relative path! David Hayden in response to a users about why not to use relative path in said: I would have thought that relative paths would be fine, but I pulled this from the documentation within the section Managing and Distributing Keys which is pretty specific about the need for absolute paths …. The Cryptography Application Block stores each key in a separate file on the local computer …. he meant, said: Although I would have thought that a relative path will be clever, (in fact not the case), But I put it from the document “management and distribution of key files” part away, and in this section quite clearly the need to use absolute paths … Cryptography Application Block for each key file on the local computer store a separate document. (See the original http://www.codeplex.com/entlib/Thread/View.aspx?Th readId = 9834)
That it!
/ / Module Number:
Summary solve this program, very simple idea: create a new key file, or restore, so that the key file associated with the deployment of the machine, and then modify the configuration file key path to the file.
GetKEYAndIV (out Key, out IV);
/ / / decrypt strings
using System.IO;
if (xn.NodeType! = XmlNodeType.Element)
/ / decryptData = sr.ReadLine ();
/ / / / Create a MemoryStream object
(5) in the current computer, and with the Enterprise Library configuration tool to encrypt files. ProtectedConfigurationProvider can only choose RsaProtectedConfigurationProvider.
XML file is very simple:
/ / / symmetric algorithm initialization vector
/ / ms.Close (); < br /> decryptData = Encoding.UTF8.GetString (ms.ToArray ());
/ / File Name: CustomCryptography.cs
2. We use the Cryptography Application Block after block of the encryption process, created a Symmetric Providers, and the algorithm used DESCryptoServiceProvider provided, this process produces a key file. But the key file copied to other machines is invalid (reasons explained later). Of course, we can now export the machine key way, and then import the key file on other machines. But this is only resolved between the developer to use the same key files. For deployment to the client, is not. Because we are unlikely to install on the client Enterprise Library 3.0, let alone in the installation process, again to manually configure the key. (Because it significantly increases the complexity of installation, and installation procedures, it is very likely not a professional.)
GetKEYAndIV (out Key, out IV);
the way to delete the RSA key container The command:
key.Key = Key;
(3) the deployment of computer file called “NetFrameworkConfigurationKey” The RSA key container.
(1) encrypt web.config
aspnet_regiis-pc “CustomKeys”-exp
L7h6oi25zn4 =
(1) in the current computer, export the RSA key container. (You can specify the path before you export the file.)
{
(1) and (2) can be directly manipulated in the current computer, (3) of the DOS command can be deployed by the program to complete.
So, this part of the code where to find them? Enterprise Library 3.0 is not to provide the source code thing, but also the configuration tool source code. In the C: / EntLib3Src/App Blocks directory (I install directory) pieces of the file under the EnterpriseLibrary solution, is this thing, we can find some clues from the inside.
switch (xn.Name)
{
{
/ / / Use MD5 encryption string
/ / Create a new DES key.
( 2) modify the configuration file, key file path. Is that protectedKeyFilename properties.
CryptoStream cs = new CryptoStream (ms, key.CreateDecryptor (), CryptoStreamMode.Write);
RsaProtectedConfigurationProvider. Using the RSA encryption algorithm to encrypt and decrypt data.
/ / / / to decrypt the string to create a MemoryStream object
}
/ / / symmetric algorithms abstract base class
HashAlgorithm hashCryptoService = new SHA1Managed ();
//———————————– ————- ————————————- —-
/**////
}
symmetricProviderData.ElementInformation.Propertie s ["protectedKeyFilename"]. Value = keyFilePath;
compare = encryptData . Equals (hashedText);
/ / / generate a symmetric algorithm initialization vector (IV and the Data Encryption Standard (DES) algorithm with a secret key (key)
need to access the other account should also be is authorized.
/ / encryptData = Convert.ToBase64String (ms.ToArray ());
/**///// create a StreamWriter object
/ / / < br />}
we use the configuration files configuration tools configuration area can specify which encryption ProtectedConfigurationProvider. It is clear that in addressing this issue, we only use RsaProtectedConfigurationProvider. due to the different RSA key container on a computer is not the same, so we need to export from one computer on a RSA key container, and then import on another computer! as import mode is achieved with the DOS command, so the problem does not exist on the deployment! In addition, because. NET Framework has a default RSA key container named “NetFrameworkConfigurationKey”, you can see this in the machine.config file default parameters.
reminder: There may be steps (1), the export fails, it can not use-pri This parameter, and this parameter is used to decrypt the information derived! without it, the other machines can only encrypt something new. then the solution is as follows:
}
/ / write date :2007-5 -30
/ / Set Data Encryption Standard (DES) algorithm with a secret key and initialization vector symmetric algorithm the value of
Stream fs = null;
fs.Flush (); < br /> / / CryptoStream encStream = new CryptoStream (ms, key.CreateDecryptor (), CryptoStreamMode.Read);
/ / / get the data encryption standard (DES) algorithm with a secret key and symmetric algorithms initialize vector
private const string KEY_FILE = “CryptographyLib.SystemKey.config”;
aspnet_regiis-pa “CustomKeys” “NT AUTHORITY / NETWORK SERVICE” (by System.Security.Principal.WindowsIdentity.GetCurre nt (). Name check)
this with (a) in the same!
string encryptData = EncryptDataByHash (plainText);
return Convert.ToBase64String (bytOut);
< br /> (4) on the current machine, the machine.config (in C: / WINDOWS/Microsoft.NET/Framework/v2.0.50727/CONF IG) in keyContainerName = “NetFrameworkConfigurationKey” replaced with the name of our newly created: keyContainerName = “CustomKeys”.
/ / / express
DESCryptoServiceProvider key = new DESCryptoServiceProvider ();
/ / / embedded in the assembly to the project XML file
/ / CryptoStream encStream = new CryptoStream (ms, key.CreateEncryptor (), CryptoStreamMode.Write);
using System.Xml;
/ / / is the same , it returns true, otherwise returns false
{
/ / / decrypt strings through DESCryptoServiceProvider
We are concerned that the second solution!
/ **////
/ / Copyright 2007
finally
{
/ / /
cs.FlushFinalBlock ();
fs = new FileStream (keyFilePath, FileMode.Create);
/**////
{
/ / empty the contents of the array
case “KEY”:
/ / / encrypt the string
/ / /
IV = Convert.FromBase64String (xn.InnerXml);
not use the providers RsaProtectedConfigurationProvider “decrypt solution of how to use Enterprise Library 3.0 Cryptography Application Block to process encrypted
}
for the second question, the proposed two solutions:
# endregion
since can Enterprise Library 3.0 by hand the way the machine can be deployed on the import key file, which also means we can programmatically import to deploy key file on the machine, because the import manually go through the process to achieve.
private void GetKEYAndIV (out byte [] Key, out byte [] IV)
byte [] plainTextBytes = Encoding.UTF8.GetBytes (plainText);
/ / / express
Key = null;
/ / / Data Encryption Standard (DES) algorithm with a secret key
/ / /
When it comes to the encrypted string to encrypt configuration files, they naturally want to mention two:
/ / /
string decryptData = string.Empty;
IV = null;
aspnet_regiis-px “CustomKeys” D: / RSAkeys.xml-pri
Key = Convert.FromBase64String (xn.InnerXml);
WebSite need to use the machine model, as the deployment of WinForms, If you can not confirm that only one account on your computer you will use to deploy the software, or using the machine model it
using (Stream fileOut = File.OpenRead (“ExportKey.txt”))
However, one may ask, with the exported key file can be restored when developing key file? While creating a new key file approach can solve the deployment problem, but wanted to Shiyong programmatically when developing ways to restore the key file, like me, then acknowledge the dead science, because prior to deployment, I have some data encrypted using this key! Of course, it can encrypt the data on the deployment was initialized!:) So open joke! Just want to open about ideas! Into the question:
break;
/ / / to compare the hash value
}
private string DecryptData (string decryptedText, SymmetricAlgorithm key)
/ / encStream.Close ();
{
}
//———- method two ——– ——————–
# endregion
/ / Description: CustomCryptography symmetric encryption and decryption of data type
MemoryStream ms = new MemoryStream ( );
/ / StreamWriter sw = new StreamWriter (encStream);
case “IV”:
(1) in the current computer, create a new RSA key container, its name is : CustomKeys. (Here a user-level and machine level, the following is to create a computer level, the name taken in accordance with your request)
full end!
DESCryptoServiceProvider key = new DESCryptoServiceProvider ();
string encryptData = string.Empty;
(2) on the current machine, with the Enterprise Library configuration tool to encrypt files. ProtectedConfigurationProvider can only choose
{
References:
return DecryptData (decryptedText, key);
Configuration config = ConfigurationManager.OpenExeConfiguration (Configur ationUserLevel.None);
}
/ / /
{
Array.Clear (plainTextBytes, 0, plainTextBytes.Length);
key.IV = IV;
fs = new FileStream (keyFilePath, FileMode.Create);
/ / empty the contents of the array
using System;
Initially, there may be such an idea, if you generate a key file, copy directly to any computer can use it the more convenient. Now, I would give this solution.
Stream fs = null;
Option One:
Both providers offer strong encryption of data; However, if you intend to use multiple computers on the same encrypted configuration file, Only use RsaProtectedConfigurationProvider. Because this can be used to export the encryption key to encrypt the data and import them on another computer.
XmlDocument xmlDoc = new XmlDocument ();
//———- method two ends ——————- ———
/ / / Custom symmetric encryption and decryption of data type
}
{
aspnet_regiis-pi “NetFrameworkConfigurationKey” D: / RSAkeys.xml
UnicodeEncoding converter = new UnicodeEncoding ();
aspnet_regiis-px “NetFrameworkConfigurationKey” D: / RSAkeys.xml-pri

/ / / express < / returns>
(2) in the current computer to grant access to the account
finally
/ / /
/ / / express
/ / / symmetric algorithms abstract base class
string decryptData = string.Empty;
if (fs ! = null)
above condensed into a large section of nonsense into a sentence: Since it is a key file associated with the local computer, and that the natural meaning of the relative path is not much (can not say absolutely no sense). key file can not be directly copied to other machines because of this key file and use DPAPI (Windows data protection) is encrypted. DPAPI used to encrypt the data can only be used on a particular computer, of course, another machine to die! Because when you use an encrypted computer and logged on to the current computer user.
(1) create a new key file.
DPAPIProtectedConfigurationProvider. Using the Windows Data Protection API (DPAPI) to encrypt and decrypt data.
if (config.HasFile)
If you want a configuration file (such as web.config, App.config) encrypted in a computer, can be used on other computers, we reached the purpose.
/ / Create a new DES key.
# region Private Constants private const
private void GenerateIVAndKey ()
/**///// create a CryptoStream object
/**////
string IVValue = Convert.ToBase64String (IV);
xmlDoc.Load (xmlInputStream);
break;
default: < br /> / / ms.Close ();
/ / /
public string EncryptData (string plainText)
bool compare = false;
/ / sr. Close ();
public string EncryptDataByHash (string plainText)
private string EncryptData (string plainText, SymmetricAlgorithm key)
key.IV = IV;
continue;
/ / /
byte [] Key = null;
public string DecryptData (string decryptedText)
mentioned earlier, you can export a key file, then import the key file resolve the problem, only solutions between developers need not meet the actual needs of our deployment! Of course, if you want to install the machine in the deployment of Enterprise Library 3.0, and then use it to re-encrypt the configuration file is very simple. Following that meet the needs of the actual deployment of the solution.
/ / – restore key files
try
try
Second, the recovery key file as follows:
//———- method two ———————————
Why is Enterprise Library 3.0 is not the key file into something that can everywhere can copy to any computer with it? David Hayden said such remarks: Enterprise Library development team for help to secure key file, so use DPAPI to encrypt the key file, DPAPI key file without the need to provide encryption can provide a way, it is very wonderful of. It “bad side” is that it is limited (the machine) or the current user (current) machine range. (The EntLib Team was required to help secure the key and hence used DPAPI to encrypt the key. DPAPI is great in that it is a way to provide encryption without requiring a key file. It is “bad” in that it is scoped to either the current user or machine.)
namespace CryptographyLib
/ / / express
string KeyValue = Convert.ToBase64String (Key);
(2) modify the configuration file key file path. Is that protectedKeyFilename properties.
}
cs.FlushFinalBlock ();
NameTypeConfigurationElementCollection elementCollection = cryptographySettings.SymmetricCryptoProviders;
Array.Clear (decryptedByteArray, 0, decryptedByteArray.Length); < br /> aspnet_regiis-pz “CustomKeys”
byte [] bytOut = hashCryptoService.ComputeHash (bytIn);
using System.Reflection;
First, the deployment of the new key file as follows: < br /> as follows:
config.Save (ConfigurationSaveMode.Minimal);
}
/ / sw.WriteLine (plainText);
/ / – generate a new key file
(2) asp.net2.0 data protection
{
This article does not demonstrate how to use the configuration tool to encrypt the configuration area, do not demonstrate how to export import the key file, and the main solution two questions:
# region methods that implement an interface that implements the interface method /**////
/**////
/ ** / ////———- way it ended —————————-
Incidentally one thing: produce key documents in the course of a selection, a user mode, a mode of the machine. User mode is logged on to the computer with
byte [] IV = null;
public bool CompareHash (string plainText, string hashedText)
/**/////—- —— Method One —————————-
{
(6) in the deployment The computer file called “NetFrameworkConfigurationKey” The RSA key container.
/ / / ciphertext
byte [] IV = null;

{
byte [] encryptedKey = ProtectedData.Protect (key, null, DataProtectionScope.CurrentUser);
byte [] IV = key.IV;
fs.Flush ();
using (Stream xmlInputStream = Assembly.GetExecutingAssembly (). GetManifestResourc eStream (KEY_FILE))
Anyway, use DPAPI to encrypt the file in any place limits our copy encrypted files, but it is safe of the consideration must be the case.
public class CustomCryptography: ICryptography
/ / StreamReader sr = new StreamReader (encStream);
/ / /
byte [] Key = key.Key;
return compare;
/ / / ciphertext
byte [] Key = null;
//———- method two end —————————-
}
{
}
/ * *////
(1) to restore the key file.
key.Key = Key;
}
/ / / ciphertext
for the first solution to the problem:
XmlNodeList nodeList = xmlDoc.SelectSingleNode (“Root”). ChildNodes;
/ / / modify the configuration file key path is protectedKeyFilename property values ??
byte [] decryptedByteArray = Convert.FromBase64String (decryptedText) ;
# endregion
{
/ / / ciphertext
}
private void ModifProtectedKeyFilename (string keyFilePath)
CryptographySettings cryptographySettings = configurationSection as CryptographySettings;
byte [] bytIn = UTF8Encoding.UTF8.GetBytes (plainText);
encryptData = Convert.ToBase64String (ms.ToArray ());
}
/ /———————————————— – —————————————-
/ / /
/**/////———- method ended ———————— —-
When you enter a wrong command, the command will display help information. Another Tip: If you use the copy command above way, we must pay attention to check the position of underscore and space!
/ / Author: ChenJie
# region private methods private methods
RsaProtectedConfigurationProvider.
!
using System.Security.Cryptography;
aspnet_regiis-pi “NetFrameworkConfigurationKey” D: / RSAkeys.xml
return encryptData;
}
{
1. We use the configuration tool to encrypt the configuration area, the (usually configProtectionProvider have two options, one is RsaProtectedConfigurationProvider, one DataProtectionConfigurationProvider), use the machine properly, but if you change to another machine, then the configuration tool, you can not open . Use RsaProtectedConfigurationProvider, and reported the following error: unable to use the provider “RsaProtectedConfigurationProvider” to extract the secret.
Option II:
SymmetricProviderData symmetricProviderData = elementCollection.Get (“DESCryptoServiceProvider”);
/**///// create a StreamReader object
KeyManager.Write (fs, encryptedKey , DataProtectionScope.CurrentUser);
/ / MemoryStream ms = new MemoryStream ();
{
prompting the following: aspnet_regiis.exe in C: / WINDOWS/Microsoft.NET/Framework/v2. 0.50727 under. My C drive is the installation path. So pay attention to the path using the DOS command. (Via the Start menu -> All Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 command prompt using the aspnet_regiis command to open the cmd interface.)
Example here only for symmetricCryptoProviders deploy key file!
{
download the entire solution method of one ————-
/**/////———- —————
return EncryptData (plainText, key);
cs.Write (decryptedByteArray, 0, decryptedByteArray.Length);
MemoryStream ms = new MemoryStream ();
/**////
byte [] key = KeyManager.GenerateSymmetricKey (typeof (DESCryptoSe rviceProvider));
2011 年 08 月 31 日
{
return decryptData;
/ / Create a new DES key.
/ / Set Data Encryption Standard (DES) algorithm with a secret key and symmetric algorithms initialize Vector is
/**///// create an encrypted stream
idea is: to a randomly generated key on the xml file, xml file and then added to by way of embedded assembly , then we can encrypt and decrypt a general reflection of the way through the class to read out the key from the xml file, and then used to encrypt and decrypt. In addition, we can generally reversible encryption on the xml file for key encryption and decryption. But stressed that this approach is less secure than the above, after all, on the xml file key risk of being cracked. Of course, this approach is not particularly high security requirements of the system can still be used.
}
/ / read from the set of nodes
/ / distribution of key file name: ExportKey.txt, password: 123456
ProtectedKey protectedKey = KeyManager.RestoreKey (fileOut, “123456 “, DataProtectionScope.LocalMachine);
{
/ / / ciphertext
/ / /
/ / sw.Close ();
if (fs! = null)
(3) on the current machine, export the RSA key container. (You can specify the path before you export the file.)
/**////
Break;
ConfigurationSection configurationSection = config.Sections ["securityCryptographyConfiguration"];
fs.Close ();
/ / / custom key file path
cs.Write (plainTextBytes, 0, plainTextBytes.Length);
/ / / compare the MD5 string
using System.Text;
}
}
KeyManager.Write (fs, protectedKey.EncryptedKey, DataProtectionScope.CurrentUser);
fs.Close ();
{
string encryptData = string.Empty;
/**////
foreach (XmlNode xn in nodeList) < br /> / / / express
DESCryptoServiceProvider key = new DESCryptoServiceProvider ();
}
user to use this key file, the machine mode of course, is as long as the computer the user can use this key file. Such as the deployment of WebForms the
vsbq4KMhR9I =
CryptoStream cs = new CryptoStream (ms, key.CreateEncryptor (), CryptoStreamMode.Write);
/ / MemoryStream ms = new MemoryStream (decryptedByteArray);

“Warcraft 3″ Basic Operation and Shortcuts

Researchtip = Learn Resurrection (U)
– resurrection prompt Revivetip (resurrection of the hero at the altar in the prompt)
custom keyboard command shortcuts can create a file called “CustomKeys.txt” file to achieve this Warcraft Ⅲ files need to put the installation directory. The entries in the file will override the default shortcut key settings to create this file only tool is a simple text editor such as Notepad (Notepad). When installation directory to create a custom file, you need to Option-> Gameplay in the Custom Keys is set to “ON” to use a custom settings file.
arrow keys – move on the map
on the front of the keyboard hotkeys that set us an example, an additional prompt looks like this:
———————- –
[AHre]
Translator Note: Chinese version is
unit skills: riding archers, knights Hippogryph separation Hippogryph mount bow hand built, wizard evil violent
[Rhme]
Untip = Stop Defend (B)
– the location of the icon Researchbuttonpos
Enter – open a conversation window, the default
[ogru]
Untip = Cancel defense (B)
unit skills: infantry defense, pastor of the dispersed, Spirit Walker to disperse, Kodo swallowed, elf from violence to disperse, put dead meat grinder of the body, destruction of who devour magic (to disperse).
unit skills: Shaman Lightning Shield
unit skills: repair of farmers of all ethnic groups, Spirit Walker life chain, Claw Druid of the howling, birds of prey Druid wonderland of fire, men witch summon skeletons
B. BUILDING, construction
——————————— ——
hero to learn the skills needed to use “Researchhotkey” to illustrate the entries using hotkeys U to learn the skills Paladin resurrection is an example of this:
Print Screen – the screen shot to. TGA file format and save it in your head
WC3 installation stopped with the H key, the unit will be in place stood still, and automatically attack enemy units within range, not to chase. This key can be effective in preventing the use of the enemy to lure the enemy to display their depth of account or “seal” the word must.
Alt-l – Open to read the archive menu
Ctrl (if the command is issued while pressing) – only the selected branches of the military orders.
——– ——————————-
Alt-F4 or Alt-q – quit Warcraft III.
unit skills: Witch Polymorph, Banshee occupied the destruction of the destroyer ball
Alt-G – in the small signal on the map. Click the map after pressing the allies to send a signal to confirm the purpose < br /> Tip = Train Orc Grunt (T)
– research hotkey Researchhotkey
Ctrl-Enter – open a conversation window of the allies
OWOMAN woman
[Adef]
Tip = Upgrade to the cast-iron sword (X), upgrade to the steel swords (Y), upgrade to the precious metal sword (Z)
Ctrl-s – on / off sound
F1-F3 – selected 1-3, a hero. Continue to press 2 times the screen will move to the hero there.
basic game interface
Shift # – # the selected number of troops to join forces.
SSTOP stop
Mouse wheel: scroll – zoom lens
F9 – open the Task Log window can allow you to view all of the major tasks and optional tasks, and complete state.
Ctrl # – will be selected # set number of troops preparing for the troops.
Unhotkey = B
in the prompt character color encoding
Tip = training Orc Infantry (| cffffcc00Tr)
PPATROL patrol < br /> Researchhotkey = U
– Wake prompt Awakentip (the hero in the inn in resurrection prompt)
Tip = defense (A)
attached: the initial color of Education
Unhotkey = B < br /> XX unknown
these two skills are not the same purpose, ah, L, used, on these two.
CTRL double-click the selected unit or units – all around the screen is selected such units.
– turn off the prompt Untip
– (activated) Tip Tip
Alt-s – open the Save
undead symbol menu, the shortcut keys used in die most. Especially that the death knight, is simply a C and students.
you want to ride a Hippogryph? Before riding again to determine what race they are, what gender, what weapons it, really troublesome … …
hero magic: Beastmaster call porcupine
unit skills: human, orc farmers who returned The collection of resources, pastor of the blood increases, those who break the law to steal the magic dragon eagle in the air chain, increases the blood streamers witch doctor, wolf the net Knight, Huntress put the owl guard post, the Claw Druid of the rejuvenation (plus blood), fairy dragon state switch.
siege units unique attack patterns, attack the designated area, causing splash damage.
Tip = Defend (A)
unit skills: collect all the shortcut keys farmers
– close icon position Unbuttonpos
JU JOKE ME
——- ——————————–
hero magic: Juggernaut image, hot on the female ritual Arrow, LICH dark ritual, Naga Siren Frost Arrow
data in the following keyboard shortcuts can be customized:
—————- ———————–
Backspace – the center of the screen to move to your town center.
Alt-F – On / Off formation mode when opened, will automatically melee arms arms arranged in front of a remote attack.
Hotkey = T
D. – DISPEL disperse
Heroes Magic: Grand Master of the Ice Storm, Fire Master of exile, the demon hunter Mana Burn, Rye instantaneous flash, the Black Arrow Dark Ranger, Beastmaster bear call.
indeed the letter of the first, the pleasure of Warcraft is a word, A! Often hear people say: “You do not A he ah”
press the mouse wheel: – Hold down to move the mouse to move on the map
Heroes Magic: Demon Hunter sacrifice
[AHre]
Mouse wheel: scroll – zoom lens
during an action.
Delete – rotate the lens to the right
some of the quick construction of the ultimate magic, used after one will always have the final VICTORY.
Why is woman? Oh, see the round circle, they always make me think of those serpent tricks
Researchhotkey = U
Mouse wheel: scroll – zoom lens
HHOLD stop
Ctrl -Enter – open a conversation window of the allies
Esc – return to the previous menu
[AHre]
unit skills: stealth archers, and Huntress, witch magic
Ctrl stealth -m – On / Off Music
F10 – open / close main menu
Alt-O – open the options menu
– (activated) hotkey Hotkey
Translation

[Reserved] asp.net web.config encryption are specified in (b)

byte [] Key = key.Key;
XmlNodeList nodeList = xmlDoc.SelectSingleNode (“Root”). ChildNodes;
cs.Write (decryptedByteArray, 0, decryptedByteArray.Length);
aspnet_regiis – px “CustomKeys” D: \ RSAkeys.xml-pri
(2): the current plan in the machine, and with the Enterprise Library configuration tool to encrypt files. ProtectedConfigurationProvider only choice
foreach (XmlNode xn in nodeList)
private void GetKEYAndIV (out byte [] Key, out byte [] IV)
so true!
/ / / symmetric algorithm initialization vector
2011 年 07 月 03 日
Key = null;
Since it is key file with the local machine coherent plan, and that the natural meaning of the absolute path is not much (do not say do not mean). key file copied to the rest of frustration on the machine directly to the cause is the key file and use DPAPI ( Windows data protection) is encrypted. Use DPAPI to encrypt the data only in a specific intended use on the machine, another machine of course, to die! Because when you use an encrypted machine with the landing of the current plan to the intended machine users.
}
as follows:
}
}
(5) machine in the current plan, and with the Enterprise Library configuration tool to encrypt files. ProtectedConfigurationProvider only choice RsaProtectedConfigurationProvider.
prompting the following: aspnet_regiis.exe in C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0. next. My C drive is the installation path. Therefore, the use of DOS commands to pay attention to the road. (Possibly through the start menu -> All Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 command prompt, use aspnet_regiis command to open the cmd interface.)
Why is Enterprise Library 3.0 does not get your key file into a full copy of any plan may be able to use the machine for? David Hayden said such remarks: Enterprise Library development team to request the insurance firm to help make key file, so use DPAPI to encrypt the key file, DPAPI does not need to supply the key file may supply an encryption method, which often wonderful length of. hardness tester it “bad side” is that it is least in the (machine) or the current user (current) within the context of the machine. (The EntLib Team was required to help secure the key and hence used DPAPI to encrypt the key. DPAPI is great in that it is a way to provide encryption without requiring a key file. It is “bad” in that it is scoped to either the current user or machine.)
case “IV”:
intend to download all the solutions
aspnet_regiis-pc “CustomKeys”-exp

(1) encrypt web.config
is to say, limits the use DPAPI to encrypt the file copy of any premises we are in an encrypted file, but it is considered to be from the insurance nature of the case.
(1) with (2) may directly control machines in the current plan, (3) of the DOS command arrangements may be implemented by the program.
{
When you enter into a wrong command, the command will display help information. Another Tip: If using the command to copy the above method, we must carefully check the position of the underscore with spaces!
IV = null;
aspnet_regiis-pi “NetFrameworkConfigurationKey” D: \ RSAkeys.xml
RsaProtectedConfigurationProvider. The use of RSA encryption algorithm to encrypt the data with decryption.
decryptData = Encoding.UTF8.GetString (ms.ToArray ());
break;
default:
}
xmlDoc.Load (xmlInputStream);
}
(4) machine in the current plan, the machine.config (in C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0. \ CONF IG) in keyContainerName = “NetFrameworkConfigurationKey” we exchange for the newly created name: keyContainerName = “CustomKeys”.
# endregion}}
/ / / generate a symmetric algorithm initialization vector (IV with the Data Encryption Standard (DES) algorithm with a secret key (key)
}
RsaProtectedConfigurationProvider .
(if you can not find Visual Studio 2005 command prompt, then you do not install completely clear)
IV = Convert.FromBase64String (xn.InnerXml);
using (Stream xmlInputStream = Assembly. GetExecutingAssembly (). GetManifestResourc eStream (KEY_FILE))

break;
UnicodeEncoding converter = new UnicodeEncoding (); < br /> (1) machine in the current plan, create a new RSA key container, its name is: CustomKeys. (There is a user-level machine with the intended level, the following is intended to create a machine-level, under the name your request to take)
aspnet_regiis-pz “CustomKeys”
DESCryptoServiceProvider key = new DESCryptoServiceProvider ();
MemoryStream ms = new MemoryStream ();
DPAPIProtectedConfigurationProvider. With Windows Data Protection API (DPAPI) to encrypt data with the decryption.
/ / / Data Encryption Standard (DES) algorithm with a secret key
full end!
(6) arranged on the intended machine, guided into the name “NetFrameworkConfigurationKey” The RSA key container.
XmlDocument xmlDoc = new XmlDocument ();
}
(2) asp.net2 .0 in the data protection
{
aspnet_regiis-pa “CustomKeys” “NT AUTHORITY \ NETWORK SERVICE”
{
byte [] IV = key.IV;
The outside world is good, the outside world is helpless
case “KEY”:
L7h6oi25zn4 =
title for the first standard solution plan:
( 2) machine in the current plan, visit the permissions granted to the account
switch (xn.Name)
cs.FlushFinalBlock ();
/ / Create a new DES key.
so Incidentally one thing: produce key documents in the course of a choice items, a user mode, one machine model. User mode is the landing to the intended machine users ability to use this key file, the machine mode of course, is only is this intended to machine Users may use this key file. For example, arrangements need to use the machine WebForms the WebSite model, as WinForms arrangements, can not confirm the plan if only one account on the machine you will use the software arrangement, or the use of the machine model it!
string KeyValue = Convert.ToBase64String (Key);
//———- method two end ———————- ——
(1): in the current plan machine, export the RSA key container (perhaps in the export file before the specified path.)
return decryptData;
When it comes to configuration file encryption, they are natural to mention two:
the way to delete the RSA key container command:
/ / / get the data encryption standard (DES) algorithm with a secret key symmetric algorithm with the initial initialization vector
above this text focus:
XML file is very simple:
aspnet_regiis-pi “NetFrameworkConfigurationKey” D: \ RSAkeys.xml
permission to visit the rest have Account should also be authorized.
(3) in the current plan machine, export the RSA key container (perhaps in the export file before the specified path.)
how to use Enterprise Library 3.0 Cryptography Application Block processing of the encryption article does not demonstrate how to use the configuration tool to encrypt the configuration area, nor guide shows how to export the file into the key, and important to address two titles: 1. we use the configuration tool to configure the encrypted area, (usually configProtectionProvider have two choices, One is RsaProtectedConfigurationProvider, one DataProtectionConfigurationProvider), the use of malformations in the machine, but if change to other machines, then configure the tool to open on the helpless. use RsaProtectedConfigurationProvider, and reported the following error: the failure to use the supply process “RsaProtectedConfigurationProvider” for solution confidential. 2. we use the Cryptography Application Block encrypted block, create a Symmetric Providers, and the use of the algorithm DESCryptoServiceProvider supply, this process produces a key file, but the rest of the copy machine key file is invalid (back to clarify the cause). Of course, we had the machine may be derived by the method of the key, and then guide the rest of the machine into the key file. Beijing legal translation company, however, that only solved the developers to make use of identical between the key file the title. on the arrangements to the client, is not because we are unlikely to install on the client Enterprise Library 3.0, let alone in the installation process, again to manually configure the key. (because it significantly increases the complexity of the installation program and the installation process, it is very likely not the professionals.) state clearly that the intended use of absolute path in protectedKeyFilename idea is not too do the same! Why? because the key file directly copied to the other choice on the machine when we key to the configuration file on each machine (including creating a new key or lead into the key, to be the best to save the key position on the road), we already know the board pays to do on the road, it is absolutely unnecessary to use the road! David Hayden In response to a friends for why not use the absolute path in said: I would have thought that relative paths would be fine, but I pulled this from the documentation within the section Managing and Distributing Keys which is pretty specific about the need for absolute paths …. The Cryptography Application Block stores each key in a separate file on the local computer …. he meant, said: It is true that I would have thought that the road would be absolutely wonderful, (in fact not the case), but I it from the document “Managing key files with the Phi-fat” part away, and proportionate in this section to clarify the need to understand to make use of the road … the use of block encryption key file for each machine in the local plan stored in a file belly Mi. (see the original http://www.codeplex.com/entlib/Thread / View.aspx? ThreadId = 9834) the above diluted into a large section of nonsense into a sentence: Since it is a key file with the local intend to drive coherent, and that the natural meaning of the absolute path is not much (do not say do not mean). key file copied to the rest of frustration on the machine directly to the cause is the key file and use DPAPI (Windows data protection) to encryption using the DPAPI to encrypt the data only in a specific plan to use machine, another machine of course, die! encryption because when you intend to use the current machine with the machine intended visit to the user information, so by the way that : Generate key file in the process there is a choice item, a user mode, one machine mode user mode is logged on to the intended machine users ability to use this key file, the machine mode of course, that only is this intended to drive on the user may use this key file. For example, arrangements WebForms the WebSite must use the machine model, as WinForms arrangement, if not sure intend to drive only one account to use your scheduled software, or use of the machine model it! for the first title of standard solutions like: If would like a configuration file (for example, web.config, App.config) intend to drive in a encrypted, the rest intend to use on both machines, we reached the goal. When it comes to the configuration file encryption, natural to mention they are two: DPAPIProtectedConfigurationProvider. With Windows Data Protection API (DPAPI) to encrypt data with the decryption. RsaProtectedConfigurationProvider. the use of RSA encryption algorithm to decrypt data encrypted with this program are two supply supply strong encryption of data; However, if the intend to plan multiple machines using the same encrypted configuration file, only use RsaProtectedConfigurationProvider. because the ability to export is used to encrypt the data encryption key, and plan on another machine on the lead into them. we use the configuration tools to configure encrypt the configuration file may specify a region which ProtectedConfigurationProvider. It is clear that in addressing this title, we only use RsaProtectedConfigurationProvider. because different intended machine is the RSA key container is not identical, so we need to plan from one machine Exporting an RSA key container, and then lead into the rest intend to drive on! because the guide into the way it is possible to use DOS commands to achieve, so the arrangement does not exist in the title! In addition, because the. NET Framework has a default RSA key container name “NetFrameworkConfigurationKey”, may see this in the machine.config file default parameters prompting the following: aspnet_regiis.exe in C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0. next. C drive is the installation path. Therefore, the use of DOS commands to pay attention to the road (perhaps through the start menu -> All Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 command prompt, use aspnet_regiis command to open the cmd interface.) as follows: (1 ) machine in the current plan, Yuesao Export RSA key container (perhaps in the export file before the specified path.) aspnet_regiis-px “NetFrameworkConfigurationKey” D: \ RSAkeys.xml-pri (2) machine in the current plan, and with the Enterprise Library tools encrypt the configuration file. ProtectedConfigurationProvider only choice RsaProtectedConfigurationProvider. (3) the arrangements intended machine, guided into the name “NetFrameworkConfigurationKey” The RSA key container. aspnet_regiis-pi “NetFrameworkConfigurationKey” D: \ RSAkeys.xml (1) with (2 ) may directly control machines in the current plan, (3) of the DOS command arrangements may be implemented by the program. so true! reminder: There may be steps (1), the export fails, it can not use-pri this parameter, and This parameter is used to decrypt the information derived! if not it, the rest of the machine can only encrypt the new stuff. then the solution is as follows: (1) machine in the current plan, create a new RSA key container, its name is: CustomKeys. (There is a user-level with the intention to machine level, the following method is to create a plan machine level, the name according to your request taking) aspnet_regiis-pc “CustomKeys”-exp (2) in the current plan machine, the account is granted visiting privileges aspnet_regiis-pa “CustomKeys” “NT AUTHORITY \ NETWORK SERVICE” account, the rest have permission to visit should also be authorized. (3) in the current plan machine, export the RSA key container (perhaps before the designated roads in the export file.) aspnet_regiis-px “CustomKeys” D: \ RSAkeys.xml-pri (4) machine in the current plan, the machine.config (in C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0. \ CONF IG) in keyContainerName = “NetFrameworkConfigurationKey” exchange to let the newly created name: keyContainerName = “CustomKeys”. (5) in the current plan machine, with the corporate database tools encrypt the configuration file. ProtectedConfigurationProvider only choice RsaProtectedConfigurationProvider. (6) in the arrangement of the intended machine, leading into the called “NetFrameworkConfigurationKey” The RSA key container. aspnet_regiis-pi “NetFrameworkConfigurationKey” D: \ RSAkeys.xml the way to delete the RSA key container command: aspnet_regiis-pz “CustomKeys” When you enter into a wrong command, will command displays help information. Another Tip: If using the command to copy the above method, we must carefully check the position of the underscore with spaces! for a second title, two solutions proposed plan: a plan: As mentioned earlier, may key file using the pilot out, and then guided into the key file to resolve, between developers only need to solve, we do not meet the practical arrangements required! sand table simulation, of course, if you are happy to arrange the installation of Enterprise Library 3.0 on the machine , and then use it to encrypt the new configuration file, the length often simple below the practical arrangements required to meet proposed solutions and since may Enterprise Library 3.0 by the manual method may lead in the arrangement of the machine into the key file, which is also a symbol we may programming approach to the arrangements through the guide into the key file on the machine because the hand to go through the guide into the program to achieve. So, this part of the code where to find it? Enterprise Library 3.0 is not supply the source code of the thing, and contains configuration tools for source code in C: \ EntLib3Src \ App Blocks directory (I install directory) intends to file documents under EnterpriseLibrary solution, is this stuff, we may find some clues from the inside here an example arrangement only for symmetricCryptoProviders key file! A The new key file arranged as follows: (1) Create a new key file. / / – generate a new key file byte [] key = KeyManager.GenerateSymmetricKey (typeof (DESCryptoSe rviceProvider)); byte [] encryptedKey = ProtectedData . Protect (key, null, DataProtectionScope.CurrentUser); Stream fs = null; try {fs = new FileStream (keyFilePath, FileMode.Create); KeyManager.Write (fs, encryptedKey, DataProtectionScope.CurrentUser); fs.Flush (); } finally {if (fs! = null) fs.Close ();} (2) modify the configuration file key file path. is that protectedKeyFilename attribute. / / /

/ / / modify the configuration file in key road, is protectedKeyFilename property values ??/ / / / / / custom key file path private void ModifProtectedKeyFilename (string keyFilePath) {/ / read Configuration config from the set of nodes = ConfigurationManager.OpenExeConfiguration (Configur ationUserLevel.None); if (config.HasFile) {ConfigurationSection configurationSection = config.Sections ["securityCryptographyConfiguration"]; CryptographySettings cryptographySettings = configurationSection as CryptographySettings; NameTypeConfigurationElementCollection elementCollection = cryptographySettings.SymmetricCryptoProviders; SymmetricProviderData symmetricProviderData = elementCollection.Get (“DESCryptoServiceProvider”); symmetricProviderData.ElementInformation.Propertie s ["protectedKeyFilename"]. Value = keyFilePath; config.Save (ConfigurationSaveMode.Minimal);}} However, one may ask, with a key derived possible to restore files when developing key file? true to create a new key file approach may solve the arrangements for the title, but wanted to use through the development of programming methods to restore the key file when, for example, lying on the recognition that the death of winter grounds, because In the arrangement, I have some data encrypted using this key! of course, possible to initialize so the data was encrypted on the arrangements!:) So open up a joke! Just want to look at a broad idea! Enter into the question: Second, to restore the key file as follows: (1) to restore the key file. / / – Restore the key file Stream fs = null; / / Phi made key file name: ExportKey.txt, password: using (Stream fileOut = File.OpenRead (“ExportKey.txt”)) {ProtectedKey protectedKey = KeyManager.RestoreKey (fileOut, “”, DataProtectionScope.LocalMachine); try {fs = new FileStream (keyFilePath, FileMode.Create); KeyManager.Write (fs, protectedKey.EncryptedKey, DataProtectionScope.CurrentUser); fs.Flush ();} finally {if (fs! = null) fs.Close ();}} (2) modify the configuration file key file path. Is that protectedKeyFilename properties. This and (I) is the same! Grating summary solve this plan, thinking is simple: to restore or create a new key file, so that the key file associated with the arrangement of the machine, and then modify the configuration file key file path. Let say for the second solution to the original plan! Plan two: first, there may be such an idea, if generating a key file, copy directly to any machine on the plan are likely to use it the more convenient. Here, I intend to give this solution. Thinking is: the randomly generated key on the xml file, xml file and then embedded in the methods added by the assembly, then we may in a general class of encryption and decryption methods by reflection from xml file to the key read out, and then used to encrypt with decrypt. In addition, we may be reversible by individual encryption method on the xml file encryption and decryption keys. However exaggerated, this method of insurance is inferior to the above, after all xml files on the key risk of being cracked. Of course, this method of request in the insurance system is not particularly high or may be taken. //———————————————— —————————————– / / Module code: / / filename : CustomCryptography.cs / / Description: CustomCryptography symmetric encryption and decryption of data class / / Author: ChenJie / / write date :2007-5-30 / / Copyright 2007 //————— ——————————— —————– ———————— using System; using System.Text; using System.Reflection; using System.IO; using System.Xml; using System. Security.Cryptography; namespace CryptographyLib {/ / / / / / Custom symmetric encryption and decryption of data type / / / public class CustomCryptography: ICryptography {# region Private Constants private const / / / / / / embedded in the assembly of the names of the XML file / / / private const string KEY_FILE = “CryptographyLib.SystemKey.config”; # endregion # region methods that implement an interface that implements the interface methods / / / / / / encrypt the string / / / / / / express / / / ciphertext public string EncryptData (string plainText) { string encryptData = string.Empty; / / Create a new DES key. DESCryptoServiceProvider key = new DESCryptoServiceProvider (); / / Set Data Encryption Standard (DES) algorithm with a secret key symmetric algorithm with the value of the initialization vector byte [ ] Key = null; byte [] IV = null; GetKEYAndIV (out Key, out IV); key.Key = Key; key.IV = IV; return EncryptData (plainText, key);} / / / / / / decrypt strings through DESCryptoServiceProvider / / / / / / ciphertext / / / express public string DecryptData (string decryptedText) {string decryptData = string.Empty; / / Create a new DES key. DESCryptoServiceProvider key = new DESCryptoServiceProvider (); / / Set Data Encryption Standard (DES) algorithm with a secret key symmetric algorithm with the value of the initialization vector byte [] Key = null; byte [] IV = null; GetKEYAndIV (out Key, out IV); key.Key = Key; key.IV = IV; return DecryptData (decryptedText, key);} / / / / / / the use of MD5 encryption string / / / / / / express / / / ciphertext public string EncryptDataByHash (string plainText) {HashAlgorithm hashCryptoService = new SHA1Managed (); byte [] bytIn = UTF8Encoding.UTF8.GetBytes (plainText); byte [] bytOut = hashCryptoService.ComputeHash (bytIn); return Convert.ToBase64String (bytOut);} / / / / / / compare MD5 encrypted string / / / / / / express / / / to compare the hash value / / / are identical, it returns true, otherwise returns false public bool CompareHash (string plainText, string hashedText) {bool compare = false; string encryptData = EncryptDataByHash (plainText); compare = encryptData.Equals (hashedText ); return compare;} # endregion # region private methods private methods / / / / / / encrypt the string / / / / / / express / / / image of symmetric algorithms base class / / / ciphertext private string EncryptData (string plainText, SymmetricAlgorithm key) {string encryptData = string.Empty ; byte [] plainTextBytes = Encoding.UTF8.GetBytes (plainText); ////———- method one ——————- ——— / / / / Create a MemoryStream object / / MemoryStream ms = new MemoryStream (); / / / / create an encrypted stream / / CryptoStream encStream = new CryptoStream (ms, key.CreateEncryptor () , CryptoStreamMode.Write); / / / / Create a StreamWriter object / / StreamWriter sw = new StreamWriter (encStream); / / sw.WriteLine (plainText); / / sw.Close (); / / encryptData = Convert.ToBase64String ( ms.ToArray ()); / / ms.Close (); ////———- method was over —————— Method two ———- ————————– //———- – MemoryStream ms = new MemoryStream (); CryptoStream cs = new CryptoStream (ms, key.CreateEncryptor (), CryptoStreamMode.Write); cs.Write (plainTextBytes, 0, plainTextBytes.Length); cs.FlushFinalBlock (); encryptData = Convert.ToBase64String (ms.ToArray ()); //———- method two end ———————— —- / / clear the contents of the array Array.Clear (plainTextBytes, 0, plainTextBytes.Length); return encryptData;} / / / / / / decrypt the string / / / / / / ciphertext / / / image of symmetric algorithms base class / / / express private string DecryptData (string decryptedText, SymmetricAlgorithm key) {string decryptData = string.Empty; byte [] decryptedByteArray = Convert.FromBase64String (decryptedText); ////———- method a —— ———————- / / / / to decrypt the string to create a MemoryStream object / / MemoryStream ms = new MemoryStream (decryptedByteArray); / / / / Create a CryptoStream object / / CryptoStream encStream = new CryptoStream (ms, key.CreateDecryptor (), CryptoStreamMode.Read); / / / / create a StreamReader object / / StreamReader sr = new StreamReader (encStream); / / decryptData = sr.ReadLine (); / / sr.Close (); / / encStream.Close (); / / ms.Close (); ////———- method to an end —— Method Two ————– ———————- //———- ——————- MemoryStream ms = new MemoryStream (); CryptoStream cs = new CryptoStream (ms, key.CreateDecryptor (), CryptoStreamMode.Write); cs.Write ( decryptedByteArray, 0, decryptedByteArray.Length); cs.FlushFinalBlock (); decryptData = Encoding.UTF8.GetString (ms.ToArray ()); //———- method two end —– ———————– / / clear the contents of the array Array.Clear (decryptedByteArray, 0, decryptedByteArray.Length); return decryptData;} / / / / / / generate a symmetric algorithm initialization vector (IV with the Data Encryption Standard (DES) algorithm with a secret key (key) / / / private void GenerateIVAndKey () {/ / create a new the DES key. DESCryptoServiceProvider key = new DESCryptoServiceProvider (); byte [] Key = key.Key; byte [] IV = key.IV; UnicodeEncoding converter = new UnicodeEncoding (); string KeyValue = Convert.ToBase64String (Key); string IVValue = Convert.ToBase64String (IV);} / / / / / / get the data encryption standard (DES) algorithm with a secret key symmetric algorithm with the initialization vector / / / / / / Data Encryption Standard (DES) algorithm with a secret key / / / symmetric algorithm initialization vector private void GetKEYAndIV (out byte [ ] Key, out byte [] IV) {Key = null; IV = null; using (Stream xmlInputStream = Assembly.GetExecutingAssembly (). GetManifestResourc eStream (KEY_FILE)) {XmlDocument xmlDoc = new XmlDocument (); xmlDoc.Load (xmlInputStream) ; XmlNodeList nodeList = xmlDoc.SelectSingleNode (“Root”). ChildNodes; foreach (XmlNode xn in nodeList) {if (xn.NodeType! = XmlNodeType.Element) {continue;} switch (xn.Name) {case “IV”: IV = Convert.FromBase64String (xn.InnerXml); break; case “KEY”: Key = Convert.FromBase64String (xn.InnerXml); break; default: break;}}}} # endregion}} XML file is very simple: L7h6oi25zn4 = vsbq4KMhR9I = Why is Enterprise Library 3.0 is not the key file inflicted a full copy of any plan may be able to use the machine it? David Hayden said such remarks: Enterprise Library development team to request the insurance firm to help make key file, so use DPAPI to encrypt the key file, DPAPI is not required in supply key documents may supply an encryption method, which often wonderful length of it “bad side” is that it is least in the (machine) or the current user (current) machine context. (The EntLib Team was required to help secure the key and hence used DPAPI to encrypt the key. DPAPI is great in that it is a way to provide encryption without requiring a key file. It is “bad” in that it is scoped to either the current user or machine.) is to say, limits the use DPAPI to encrypt the file copy of any premises we are in the encrypted file, but it is the insurance of the consideration must be the case. intend to download the full text of all to solve the end! Beijing translation company led lighting reference material: (1 ) to encrypt web.config (2) asp.net2.0 data protection
reference material:
if (xn.NodeType! = XmlNodeType.Element)
{
vsbq4KMhR9I =
/ / empty the contents of the array
aspnet_regiis-px “NetFrameworkConfigurationKey” D: \ RSAkeys.xml-pri
continue;
if want to a configuration file (for example, web.config, App.config) intend to drive in a encrypted, the rest intend to use on both machines, we reached the goal.
{
[Popular] connection pool Lifeguards
Key = Convert.FromBase64String (xn.InnerXml);
reminder: there may be steps (1), the export fails, it can not use-pri this parameter, and this parameter is used to decrypt the information derived ! Without it, the rest of the machine can only encrypt the new stuff. then the solution is as follows:
symbolizes the beginning of the end of the beginning of the end of the turn … //———- Method Two ———————————

/ / /
CryptoStream cs = new CryptoStream (ms, key.CreateDecryptor (), CryptoStreamMode.Write);
{
private void GenerateIVAndKey ()
/ / /
/ / /
/ / /
This article published by the dark horse from automatic mass blog, this information will appear in the article section of the end;
break;
Array.Clear (decryptedByteArray, 0, decryptedByteArray.Length);
string IVValue = Convert.ToBase64String (IV);
we use the configuration tool to configure the zone configuration file encryption may specify which ProtectedConfigurationProvider. It is clear that in the settlement of this title, we only use RsaProtectedConfigurationProvider. because of the different machines on the plan of the RSA key container is not identical, so we need to plan from one machine to export an RSA key container, then guided into the rest intend to drive on! because it is possible to use the guide into the way the DOS command to achieve, so the arrangement does not exist in the title! In addition, because the. NET Framework has a default RSA key container named “NetFrameworkConfigurationKey”, in the machine. may see the default config file parameters.
supply programs both supply strong encryption of data; However, if intend to use more than one plan with an encrypted machine configuration file, only use RsaProtectedConfigurationProvider. because the ability to export is used to encrypt the data encryption key, and another intended to lead into their machine.
(3): the intention of the arrangement machine, guide into the name “NetFrameworkConfigurationKey” The RSA key container .

Christmas discount on package size 13 COACH



a lot in common, but in the foreign brands in the domestic price is really staggering, not a lot of foreign official to the international postal network, and English is not
COACH (Coach) was established in 1941, when it was a The family-owned workshops. In the United States Niuyuemanke Dayton a loft, six workers
2011 年 12 月 21 日
is good, there are difficult to buy, but you can choose to purchasing, spend down costs similar, but higher than the domestic price or to counter it


elegant navy blue ~ ~
COACH small handbag
Carpenter to generations of manual techniques produced a series of leather products. Since then, COACH (Coach) unique craftsmanship and high quality production

COACH bag without LOGO very low-key long section
COACH wallet
GUCCI (Gooch ), FENDI (Fendi), PRADA (Prada) and other famous brands of world-class luxury fashion brand.
There are back shopping, www.10back.com (back to the current network of overseas shopping)
calm the little green men and women ~ ~
fine accessories and gifts of U.S. companies. After years of sustained development, “COACH” brand has become and LOUIS VUITTON,
U.S. tolerance of one month, coincides with the Christmas credit,, defeated coach, to prepare this weekend once again reached the outlet ~ ~ Do not talk nonsense, we Figure it
by those who favor a rather particular about the quality of the customer.

top purse with a series of shoulder bag
COACH commuter bag


COACH small handbag 3
dual-use bag

should a lot of things back in the United States direct mail, authentic guarantee, a small ticket, it is easy, looking back now 10back overseas shopping network is not only cheaper

~ ~ feel good please join it ~ ~ Coach holding is American leather luxury jewelry brands. Coach is headquartered in New York, is leading the main
beautiful wine red patent leather purse ~ ~
COACH small handbag 2

the same series of packet

Coach Signature
(2011-08-09 19:10:43)

Coates – coach

COACH different from other international brands, continue to adhere to the high cost of hand-made, has continued to introduce high-quality raw materials, COACH has been with the practicality and durability of leather goods for their own mind, in a balance between traditional and popular, and to maintain price on the plain, is very suitable for ladies of high fashion brand. Coach was first established in 1941, is a family of six from the leather master cobbler co-operation, and now, after half a century, coach leather factory is still delicate art of leather by the master is responsible for most of them have 20 years of experience in leather, leather craft full of love and professional, therefore, for every coach in terms of the master cobbler, coach is not just a brand name, it is their painstaking efforts and heritage.
American classic leather goods brand coach, one as a “simple”, “durable” unique style to win consumers. And has a “timeless” in praise of coach bags, original design was actually inspired from a softball glove, brand founder miles caha softball game in a scene watch, surprised to find softball gloves have more you use the more smooth, more soft features, so he tried to go back to leather after special treatment to make it more flexible, with easy bleaching, wear characteristics, and simply use a damp cloth, will be able to maintain the perfect leather goods such as new, of course, This durable and convenient design, immediately by the majority of consumers love!
Brand brand name: Coates
2011 年 06 月 25 日
founder: LewFrankfort
English Name: coach
origin: U.S. brand story
1. simple design: coach of the leather design is very simple , usually only the changes in appearance, the skin surface and does not do much the rest of the decoration.
founding Time: 1941 年
3. items array: coach product range has more than one hundred kinds of handbags, briefcases, belts, wallets, travel goods etc. and recent fall of 1996, also try to launch men series.
COACH New York well-known brands in the United States in 1941 with exquisite handmade leather art, to create a sense of a series of high-value leather accessories, COACH, founder of the traditional baseball glove from the inspiration, the use of a unique and delicate The technology will be a solid set of leather ball, turned into a soft, durable and full of shiny jewelry, and expose fascinating natural leather texture, color and unique style of design in New York.
brand identity
2. timeless: the same as jeans, coach is also in line with the spirit of America, have more with the better view, a good mix of convenience features.

Bought a new wallet COACH

COACH-4
wallet, but still very beautiful in itself, worthy of comparison to what the price, posted a few pictures below to SHOW what
sun is over, is still too expensive, and quietly tell you This wallet to get a birthday 2600K
COACH wallet as a gift, good fun, but that asking too much, COACH wallet certainly not cheap, I just had a small birthday just
COACH-2
wallet opposite three-dimensional map
COACH-3

being positive is like a
COACH-1

cheap coach handbags are important details not miss. View the inner folds of leather or cutting line is formed

As long as there is a double G pattern in the counterfeit industry Dingshao range, so careful observation of the weave pattern G is tidy, all car lines are not neat, finishing fine is not fine, clean, cheap coach handbags, are not let go important details. View the inner folds of leather or cutting line is formed, is fake Goof place.
[label] Fake Gucci Gucci bag liner is more vague on the label font, label on the back are not numbered. pologucci baby carrier007.nike air force one shoes
cheap coach handbags are important details not miss. View the inner folds of leather or cutting line is formed
2011 年 06 月 09 日
2011-06-09 11:01:33Category: Default CategoryTags:subscribe to medium and small font size [work] authentic Gucci Gucci bag work is very fine, From the pattern of the weave to the car line, the inner layer is very clean and neat. Fake Gucci Gucci bag work unsatisfactory, to the special observation weave pattern G is tidy, all car lines are not neat, finishing is not clean, the inner folds of leather or cutting line is not smooth coach handbags, these are fake Gucci Gucci bag Goof place.

[material] authentic Gucci Gucci bag nylon fabric feel stiff, thick. Fake Gucci nylon fabric is relatively thin, lv bag, feels no sense of reality.

all the stores where purchased vouchers, receipts, warranty card inside the bag and code, are the future maintenance and second-hand auction, verify the identity of the strong credentials, do not throw famous family.
Here then are a few discerning Gucci Gucci bag tips for winter fashion
[number] authentic Gucci Gucci bag liner will be printed on the label “Gucci” and “madeinItaly” the words, and this label will be printed behind the clear number, this is the true identity of Gucci logo.

genuine Gucci Gucci purchase the following accessories package replice handbags1. digital card, 2 dust belt, 3 proof of purchase, 4.GUCCI bag, wallet if it is class, as well as tray (side bar with slender product model ).
[bamboo handle] authentic Gucci bag Gucci bamboo handle heavy weight, thick wood, the deeper the color. Fake Gucci bamboo handle is lighter, thinner wood, light in color.
Netease blog security alert : The system detected that your current password is less secure, for your account security, we recommend that you change your password immediately amend the timely closure
important reminder: The system detects that your account may have stolen the risk, please see the risk as soon as possible tips, and immediately change your password. Close