diff options
Diffstat (limited to 'OpenSim/Data/MSSQL')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLGridData.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLGridData.cs b/OpenSim/Data/MSSQL/MSSQLGridData.cs index 3330732..cf81bee 100644 --- a/OpenSim/Data/MSSQL/MSSQLGridData.cs +++ b/OpenSim/Data/MSSQL/MSSQLGridData.cs | |||
@@ -417,7 +417,7 @@ namespace OpenSim.Data.MSSQL | |||
417 | public bool AuthenticateSim(LLUUID uuid, ulong handle, string authhash, string challenge) | 417 | public bool AuthenticateSim(LLUUID uuid, ulong handle, string authhash, string challenge) |
418 | { | 418 | { |
419 | SHA512Managed HashProvider = new SHA512Managed(); | 419 | SHA512Managed HashProvider = new SHA512Managed(); |
420 | ASCIIEncoding TextProvider = new ASCIIEncoding(); | 420 | Encoding TextProvider = new UTF8Encoding(); |
421 | 421 | ||
422 | byte[] stream = TextProvider.GetBytes(uuid.ToString() + ":" + handle.ToString() + ":" + challenge); | 422 | byte[] stream = TextProvider.GetBytes(uuid.ToString() + ":" + handle.ToString() + ":" + challenge); |
423 | byte[] hash = HashProvider.ComputeHash(stream); | 423 | byte[] hash = HashProvider.ComputeHash(stream); |