aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r--OpenSim/Data/MySQL/MySQLGridData.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLGridData.cs b/OpenSim/Data/MySQL/MySQLGridData.cs
index df52ae0..e830133 100644
--- a/OpenSim/Data/MySQL/MySQLGridData.cs
+++ b/OpenSim/Data/MySQL/MySQLGridData.cs
@@ -366,7 +366,7 @@ namespace OpenSim.Data.MySQL
366 public bool AuthenticateSim(LLUUID uuid, ulong handle, string authhash, string challenge) 366 public bool AuthenticateSim(LLUUID uuid, ulong handle, string authhash, string challenge)
367 { 367 {
368 SHA512Managed HashProvider = new SHA512Managed(); 368 SHA512Managed HashProvider = new SHA512Managed();
369 ASCIIEncoding TextProvider = new ASCIIEncoding(); 369 Encoding TextProvider = new UTF8Encoding();
370 370
371 byte[] stream = TextProvider.GetBytes(uuid.ToString() + ":" + handle.ToString() + ":" + challenge); 371 byte[] stream = TextProvider.GetBytes(uuid.ToString() + ":" + handle.ToString() + ":" + challenge);
372 byte[] hash = HashProvider.ComputeHash(stream); 372 byte[] hash = HashProvider.ComputeHash(stream);