aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/mass test client/Commands/System/MD5Command.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-06-21 17:08:21 +0000
committerAdam Frisby2007-06-21 17:08:21 +0000
commite93869c7a785a4f375685ffa33c913033ed1c85a (patch)
treeabb5e2c58f8750a1bc05acf58716b6b025da4d15 /tools/mass test client/Commands/System/MD5Command.cs
parentFixed the struct and null compare bug. (diff)
downloadopensim-SC_OLD-e93869c7a785a4f375685ffa33c913033ed1c85a.zip
opensim-SC_OLD-e93869c7a785a4f375685ffa33c913033ed1c85a.tar.gz
opensim-SC_OLD-e93869c7a785a4f375685ffa33c913033ed1c85a.tar.bz2
opensim-SC_OLD-e93869c7a785a4f375685ffa33c913033ed1c85a.tar.xz
* Importing Ming's mass test client
Diffstat (limited to 'tools/mass test client/Commands/System/MD5Command.cs')
-rw-r--r--tools/mass test client/Commands/System/MD5Command.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/mass test client/Commands/System/MD5Command.cs b/tools/mass test client/Commands/System/MD5Command.cs
new file mode 100644
index 0000000..2084e67
--- /dev/null
+++ b/tools/mass test client/Commands/System/MD5Command.cs
@@ -0,0 +1,22 @@
1using System;
2using libsecondlife;
3
4namespace libsecondlife.TestClient
5{
6 public class MD5Command : Command
7 {
8 public MD5Command(TestClient testClient)
9 {
10 Name = "md5";
11 Description = "Creates an MD5 hash from a given password. Usage: md5 [password]";
12 }
13
14 public override string Execute(string[] args, LLUUID fromAgentID)
15 {
16 if (args.Length == 1)
17 return Helpers.MD5(args[0]);
18 else
19 return "Usage: md5 [password]";
20 }
21 }
22}