Class CryptoUtility


  • public class CryptoUtility
    extends Object
    Basic utilities to encrypt/decrypt Strings.
    • Constructor Detail

      • CryptoUtility

        public CryptoUtility()
    • Method Detail

      • encrypt

        public static String encrypt​(String value)
                              throws javax.servlet.ServletException
        Encrypts a String
        Parameters:
        value - Plain text String to be encrypted.
        Returns:
        Encrypted value.
        Throws:
        javax.servlet.ServletException
      • decrypt

        public static String decrypt​(String value)
                              throws javax.servlet.ServletException
        Decrypts a String
        Parameters:
        value - Encrypted String
        Returns:
        Decrypted value.
        Throws:
        javax.servlet.ServletException