Class Encrypt

java.lang.Object
edu.internet2.middleware.morphString.Encrypt

public class Encrypt extends Object
from sh or bat file to encrypt a string
  • Constructor Details

    • Encrypt

      public Encrypt()
  • Method Details

    • main

      public static void main(String[] args)
      if an arg is dontMask, then it wont try the fancy masking stuff
      Parameters:
      args -
    • encryptInput

      public static void encryptInput(boolean dontMask)
      encrypt user input, perhaps dont mask
      Parameters:
      dontMask -
    • password

      public static final char[] password(InputStream in, String prompt) throws IOException
      Parameters:
      in - stream to be used (e.g. System.in)
      prompt - The prompt to display to the user.
      Returns:
      The password as entered by the user.
      Throws:
      IOException