aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorTom2011-01-26 12:54:12 -0800
committerTom2011-01-26 12:54:12 -0800
commit04c62c4959d99ed3a8d350464db64aac6db1ec5f (patch)
treee238c4da8ea7beaf4159fa0f7c32a18718b89f72 /OpenSim/Region/ScriptEngine/Shared
parentProvide an SL compatible llMD5String function across all platforms (diff)
downloadopensim-SC-04c62c4959d99ed3a8d350464db64aac6db1ec5f.zip
opensim-SC-04c62c4959d99ed3a8d350464db64aac6db1ec5f.tar.gz
opensim-SC-04c62c4959d99ed3a8d350464db64aac6db1ec5f.tar.bz2
opensim-SC-04c62c4959d99ed3a8d350464db64aac6db1ec5f.tar.xz
Revert my previous SHA1 commit in favour of a better implementation
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 45af13a..f5b7f5f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -32,7 +32,6 @@ using System.Diagnostics; //for [DebuggerNonUserCode]
32using System.Runtime.Remoting.Lifetime; 32using System.Runtime.Remoting.Lifetime;
33using System.Text; 33using System.Text;
34using System.Threading; 34using System.Threading;
35using System.Security.Cryptography;
36using System.Text.RegularExpressions; 35using System.Text.RegularExpressions;
37using Nini.Config; 36using Nini.Config;
38using log4net; 37using log4net;
@@ -6945,8 +6944,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6945 public LSL_String llSHA1String(string src) 6944 public LSL_String llSHA1String(string src)
6946 { 6945 {
6947 m_host.AddScriptLPS(1); 6946 m_host.AddScriptLPS(1);
6948 SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider(); 6947 return Util.SHA1Hash(src, Encoding.UTF8).ToLower();
6949 return BitConverter.ToString(SHA1.ComputeHash(Encoding.UTF8.GetBytes(src))).Replace("-", String.Empty).ToLower();
6950 } 6948 }
6951 6949
6952 protected ObjectShapePacket.ObjectDataBlock SetPrimitiveBlockShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist) 6950 protected ObjectShapePacket.ObjectDataBlock SetPrimitiveBlockShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist)