Class EncryptionUtils

java.lang.Object
org.gcube.spatial.data.geonetwork.utils.EncryptionUtils

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

    • EncryptionUtils

      public EncryptionUtils()
  • Method Details

    • 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