diff options
-rw-r--r-- | OpenSim.Framework/UserProfile.cs | 12 |
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; | |||
3 | using System.Text; | 3 | using System.Text; |
4 | using libsecondlife; | 4 | using libsecondlife; |
5 | using OpenSim.Framework.Inventory; | 5 | using OpenSim.Framework.Inventory; |
6 | using System.Security.Cryptography; | ||
6 | 7 | ||
7 | namespace OpenSim.Framework.User | 8 | namespace 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) |