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
|
|
|
{
|
2024-07-01 12:17:07 -05:00
|
|
|
return args.Length == 1 ? Utils.MD5(args[0]) : "Usage: md5 [password]";
|
2007-04-28 20:54:02 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|