package dctm1;
public class RecoverPW {
public static void main(String args[]) {
try {
if (args.length != 1) {
System.err.println("usage: recoverPW password");
System.exit(1);
}
String password = args[0];
// try decrypting with BOF utils - shorter, base64 encoded passwords
try {
System.out.println(com.documentum.fc.tools.RegistryPasswordUtils.decrypt(password));
} catch (Exception e) {
}
// try decrypting with API - longer, dm_encrypt_password passwords
try {
//System.out.println(com.documentum.dmcl.impl.DmclApi.getInstance().get("decrypttext,c,DM_ENCR_TEXT=" + password));
} catch (Exception e) {
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
public class RecoverPW {
public static void main(String args[]) {
try {
if (args.length != 1) {
System.err.println("usage: recoverPW password");
System.exit(1);
}
String password = args[0];
// try decrypting with BOF utils - shorter, base64 encoded passwords
try {
System.out.println(com.documentum.fc.tools.RegistryPasswordUtils.decrypt(password));
} catch (Exception e) {
}
// try decrypting with API - longer, dm_encrypt_password passwords
try {
//System.out.println(com.documentum.dmcl.impl.DmclApi.getInstance().get("decrypttext,c,DM_ENCR_TEXT=" + password));
} catch (Exception e) {
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
No comments:
Post a Comment