@Override
    public void run() {
      checkNotNull(parentCommand);

      parentCommand.out.println(BCrypt.hashpw(password, BCrypt.gensalt()));
    }
The Hash sub command for password.
app/src/main/java/org/hyperledger/besu/cli/subcommands/PasswordSubCommand.java