corrade-vassal – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | vero | 1 | using System; |
2 | using OpenMetaverse; |
||
3 | |||
4 | namespace OpenMetaverse.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 | Category = CommandCategory.Other; |
||
13 | } |
||
14 | |||
15 | public override string Execute(string[] args, UUID fromAgentID) |
||
16 | { |
||
17 | if (args.Length == 1) |
||
18 | return Utils.MD5(args[0]); |
||
19 | else |
||
20 | return "Usage: md5 [password]"; |
||
21 | } |
||
22 | } |
||
23 | } |