Changeset 26206 for main/trunk/greenstone3/src
- Timestamp:
- 2012-09-18T18:10:37+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/Authentication.java
r25852 r26206 1037 1037 return collect_list_node; 1038 1038 } 1039 1040 // main() method - calls hashPassword() on any String argument, printing this to stdout 1041 // This main() is invoked by gliserver.pl perl code to encrypt passwords identically to Java code. 1042 public static void main(String[] args) { 1043 if(args.length < 1) { 1044 System.err.println("Usage: Authentication <string to encrypt>"); 1045 System.exit(-1); 1046 } 1047 // just hash the first argument 1048 String hash = Authentication.hashPassword(args[0]); 1049 System.out.println(hash); 1050 } 1039 1051 }
Note:
See TracChangeset
for help on using the changeset viewer.