* Thanks to Mic Bowman for inspiring me to look at that we are still using ASCIIEncoder in places we shouldn't.

This commit is contained in:
Adam Frisby
2008-05-01 18:50:44 +00:00
parent 239228abd8
commit 76d8eaa406
13 changed files with 10 additions and 76 deletions

View File

@@ -366,7 +366,7 @@ namespace OpenSim.Data.MySQL
public bool AuthenticateSim(LLUUID uuid, ulong handle, string authhash, string challenge)
{
SHA512Managed HashProvider = new SHA512Managed();
ASCIIEncoding TextProvider = new ASCIIEncoding();
Encoding TextProvider = new UTF8Encoding();
byte[] stream = TextProvider.GetBytes(uuid.ToString() + ":" + handle.ToString() + ":" + challenge);
byte[] hash = HashProvider.ComputeHash(stream);