Class TextCrypt


  • public class TextCrypt
    extends Object
    This class is used to encrypt the string value. It is used during installation.
    • Constructor Detail

      • TextCrypt

        public TextCrypt()
    • Method Detail

      • main

        public static void main​(String[] args)
        This method encrypts the passed string and then prints on console.
        Parameters:
        args - arguments for this method. The string to be encrypted
      • readFromPasswordFile

        public static String readFromPasswordFile​(String passwordfile)
        This method reads the password from the file. If the read fails it prints stacktrace of the exception.
        Parameters:
        passwordfile - The file from which the password is read.
        Returns:
        Returns the password read from the file.