Class EncryptionUtils


  • public class EncryptionUtils
    extends Object
    Utility class for encryption and decryption operations.
    • Constructor Detail

      • EncryptionUtils

        public EncryptionUtils()
    • Method Detail

      • decrypt

        public static final String decrypt​(String toDecrypt)
                                    throws EncryptionException
        Decrypts the given encrypted string.
        Parameters:
        toDecrypt - the string to decrypt
        Returns:
        the decrypted string
        Throws:
        EncryptionException - if decryption fails
      • encrypt

        public static final String encrypt​(String toEncrypt)
                                    throws EncryptionException
        Encrypts the given plain text string.
        Parameters:
        toEncrypt - the string to encrypt
        Returns:
        the encrypted string
        Throws:
        EncryptionException - if encryption fails