Prev | Current Page 875 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

ComputeHash(clear);
// reload the RSA provider based on the public key only
CspParameters paramsCsp = new CspParameters();
paramsCsp.Flags = CspProviderFlags.UseMachineKeyStore;
RSACryptoServiceProvider provRSA = new RSACryptoServiceProvider(paramsCsp);
provRSA.FromXmlString(publicKey);
// verify the signature on the hash
byte[] sigBytes = Convert.FromBase64String(signature);
bool result = provRSA.VerifyHash(hash, CryptoConfig.MapNameToOID("SHA1"),
sigBytes);
return result;
}
}
}
Globalization and Localization
In this section of the chapter, we discuss issues surrounding developing server controls that
work nicely in an ASP.NET application that is localized to cultures other than those using U.S.
English. A key feature of a server control library is the capability to support modification techniques
that make it easy to deploy to the appropriate culture. Two key definitions crystallize
what needs to be done: globalization and localization. Globalization is the process of designing
an application so that it can be easily modified or updated to support different cultures. Localization
is the actual work it takes to modify the application for a specific culture. An application
designed with globalization in mind makes the localization process very easy.


Pages:
863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887