2008-07-21 21:12:59 +00:00
|
|
|
namespace OpenMetaverse.TestClient
|
2007-04-28 20:54:02 +00:00
|
|
|
{
|
|
|
|
|
public class MD5Command : Command
|
|
|
|
|
{
|
|
|
|
|
public MD5Command(TestClient testClient)
|
|
|
|
|
{
|
|
|
|
|
Name = "md5";
|
|
|
|
|
Description = "Creates an MD5 hash from a given password. Usage: md5 [password]";
|
2008-07-25 08:55:36 +00:00
|
|
|
Category = CommandCategory.Other;
|
2007-04-28 20:54:02 +00:00
|
|
|
}
|
|
|
|
|
|
2008-07-25 05:15:05 +00:00
|
|
|
public override string Execute(string[] args, UUID fromAgentID)
|
2007-04-28 20:54:02 +00:00
|
|
|
{
|
|
|
|
|
if (args.Length == 1)
|
2008-08-12 22:38:02 +00:00
|
|
|
return Utils.MD5(args[0]);
|
2007-04-28 20:54:02 +00:00
|
|
|
else
|
|
|
|
|
return "Usage: md5 [password]";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|