* All MathUtils and non-SL-specific Helpers functions have been put in OpenMetaverseTypes.dll inside the Utils class. Helpers only contains SL-specific functions now * LLSD encoding/decoding for custom types has been moved out of the types and implemented as static functions in the LLSD class git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2082 52acb1d6-8a22-11de-b505-999d5b087335
24 lines
595 B
C#
24 lines
595 B
C#
using System;
|
|
using OpenMetaverse;
|
|
|
|
namespace OpenMetaverse.TestClient
|
|
{
|
|
public class MD5Command : Command
|
|
{
|
|
public MD5Command(TestClient testClient)
|
|
{
|
|
Name = "md5";
|
|
Description = "Creates an MD5 hash from a given password. Usage: md5 [password]";
|
|
Category = CommandCategory.Other;
|
|
}
|
|
|
|
public override string Execute(string[] args, UUID fromAgentID)
|
|
{
|
|
if (args.Length == 1)
|
|
return Utils.MD5(args[0]);
|
|
else
|
|
return "Usage: md5 [password]";
|
|
}
|
|
}
|
|
}
|