@Override public char[] resolvePassword(String passwordHint) throws PasswordResolverException { return OBFPasswordService.deobfuscate(passwordHint).toCharArray(); }
@Override public void init(String conf) throws PasswordResolverException { Args.notBlank(conf, "conf"); this.password = OBFPasswordService.deobfuscate(conf).toCharArray(); }
@Override protected Object execute0() throws Exception { if (!(passwordHint == null ^ passwordFile == null)) { throw new IllegalCmdParamException( "exactly one of password and password-file must be specified"); } if (passwordHint == null) { passwordHint = new String(IoUtil.read(passwordFile)); } if (!StringUtil.startsWithIgnoreCase(passwordHint, "OBF:")) { throw new IllegalCmdParamException("encrypted password '" + passwordHint + "' does not start with OBF:"); } String password = OBFPasswordService.deobfuscate(passwordHint); if (outFile != null) { saveVerbose("saved the password to file", new File(outFile), new String(password).getBytes()); } else { println("the password is: '" + new String(password) + "'"); } return null; }
return OBFPasswordService.deobfuscate(passwordHint).toCharArray(); } else { return passwordHint.toCharArray();
String str = new String(IoUtil.read(masterPasswordFile)); if (str.startsWith("OBF:") || str.startsWith("obf:")) { str = OBFPasswordService.deobfuscate(str);
String str = new String(IoUtil.read(masterPasswordFile)); if (str.startsWith("OBF:") || str.startsWith("obf:")) { str = OBFPasswordService.deobfuscate(str);