Skip to content

Instantly share code, notes, and snippets.

@krisrice
Last active March 1, 2016 13:33
Show Gist options
  • Save krisrice/2009d873e1fd37ef82e0 to your computer and use it in GitHub Desktop.
Save krisrice/2009d873e1fd37ef82e0 to your computer and use it in GitHub Desktop.
var System = Java.type("java.lang.System");
reader = ctx.getProperty("script.runner.jline");
var passwd = reader.readLine(null, 0); // 0 means don't echo
System.out.println("\nGot Password:" + passwd);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment