aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim.Framework')
-rw-r--r--OpenSim.Framework/UserProfile.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim.Framework/UserProfile.cs b/OpenSim.Framework/UserProfile.cs
index 5b7405a..eef6be1 100644
--- a/OpenSim.Framework/UserProfile.cs
+++ b/OpenSim.Framework/UserProfile.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using libsecondlife; 4using libsecondlife;
5using OpenSim.Framework.Inventory; 5using OpenSim.Framework.Inventory;
6using System.Security.Cryptography;
6 7
7namespace OpenSim.Framework.User 8namespace OpenSim.Framework.User
8{ 9{
@@ -38,8 +39,15 @@ namespace OpenSim.Framework.User
38 39
39 public void InitSessionData() 40 public void InitSessionData()
40 { 41 {
41 CurrentSessionID = LLUUID.Random(); 42
42 CurrentSecureSessionID = LLUUID.Random(); 43 System.Security.Cryptography.Rfc2898DeriveBytes b = new Rfc2898DeriveBytes(MD5passwd, 128);
44
45 RNGCryptoServiceProvider rand = new RNGCryptoServiceProvider();
46
47 CurrentSessionID = new LLUUID();
48 CurrentSecureSessionID = new LLUUID();
49 rand.GetBytes(CurrentSecureSessionID.Data);
50 rand.GetBytes(CurrentSessionID.Data);
43 } 51 }
44 52
45 public void AddSimCircuit(uint circuitCode, LLUUID regionUUID) 53 public void AddSimCircuit(uint circuitCode, LLUUID regionUUID)